We are generating PDF contracts in our product for user-consumption. Sometimes the contracts need to be customized with different layouts to account for additional customer-specific data. We have to somehow do this at scale for many customers, allowing them to send in new template versions.
Requirements:
- templates must allow variable-row tables for data insertion
- templates must be able to hide some passages based on data
- templates must allow addition of large amounts of custom text under a custom layout
Some solutions we've considered:
- Adobe Acrobat only allows us to insert static fields into a PDF, but doesn't allow variable number of table rows.
- Microsoft Word may be a solution for dynamically populating/hiding fields with VBA macros...
- iText can be used to manually construct the PDFs based on customer templates
- Jaspersoft Studio can be used to define the templates if all customers agree to train someone to use it
Would appreciate any similar experiences in dealing with this type of problem. Thanks.