Jonathan Neighbour wrote:

Using iText is it possible to merge dynamic data into form fields, on an existing pdf acting as a template?

As far as I can tell using the acroform fields and setting a fields value only displays the data that fits in the originally sized field, the rest is chopped off and does not display on the resulting pdf. I need to produce pdf’s where the data being merged in will be of varying size which can be predetermined.

Take a look at the example I just sent to the mailinglist about using a field as place-holder for an image. You can easily adapt that code. Retrieve the field rectangle and add text at that position that fits in this rectangle. There are different ways to measure the length of a String in iText.
br,
Bruno


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to