Hi all, When I put AcroFields on a form: If the names are all distinct, all is well. If they are duplicated, I have to do something special, as Paolo has described elsewhere. In particular, AcroFields appearing on different pages may have the same name.
If all field names are different this strategy works fine: 01: GetInstance() to get a writer to the PDF 02: AddAuthor(), creator, etc. to set PDF properties 03: For each page do... 04: if the first page Document.Open the page 05: else Document.NewPage subsequent pages 06: draw content to the page 07: For each field on this page do... 08: create TextField and add it to the page via AddAnnotation() 09: next field 10: next page 11: Close() writer and write to disk. To check to see if I have duplicated fields, I moved lines 07-09 down to immediately before the Close(). When I instantiate each TextField, I set the PdfFormField.Page attribute to the desired page, but iText does not honor this request, placing instead all of the fields on the last page of the document. It appears that the AddAnnotation() only places AcroFields on the current page. Most likely, I'm doing something wrong to cause iText to ignore the PdfFormField.Page, but I don't see it. Please advise. Thanks in advance, steve ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/