Posted by a ceTe Software moderator
Hello,
Yes, it is possible to open and fill an existing PDF template with data using
DynamicPDF Merger for Java and it includes DynamicPDF Generator.
If you have a PDF template that has acro form fields then you can use our API to access the form field collection and update the form field values. This is demonstrated in the
AcroForm Filler Example. In case the PDF template do not have acro form fields but has empty space or place holders, then you will need to know the exact coordinates of that place holder beforehand to be able to place a text at that location. This demonstrated in the
Form Filler Example. Source code and PDF templates used for these two examples are provided in the product’s evaluation download.
If you need to add dynamically expanding data in between static content on an existing PDF template, then you will have to leave enough space beforehand to accommodate the dynamic data. If you design the PDF template in such a way that the dynamic data ends up on new page, then you can dynamically create as many new pages as you need with dynamic data and insert or append them to the PDF template. Here are the links that discuss how to dynamically generate pages with
text and
tables.
Thanks,
ceTe Software Support Team.