Op 17/07/2012 22:07, Andreas Sachs schreef: > i have a small AcroForm (credit card size) and want to put it multiple times > on the same page (2 columns, 4 rows) with different content. The form is > populated from a database.
If you have a PDF with a field (e.g. name) that needs to appear twice on the same page (two widget annotations), then the content of those widgets needs to be identical, because the field (name) can only have one value (e.g. Andreas). A single field can never have two different values (that would be a very ambiguous field). However: > I already found an example to create a new page for every dataset in the book > iText in Action. Can anybody provide an example, on how to put the same form > multiple times on one page? You can of course introduce a hierarchy. For instance, you can create parent fields person1, person2,... personN, and create a child field with a single widget annotation for each of these parent fields: person1.name, person2.name,... personN.name. I think that's what you want to do: you want to create a template that you can fill out with iText, adding the content of different records of the same table to different fields on one page. It's not clear if you want to create that template using iText (possible, but some programming work) or a desktop tool such as Adobe Acrobat (no programming involved). ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php