new2pdf wrote: > I am combining 2 pdf files into one using > PdfCopyFields.addDocument(pdfReader) and populate this new pdf from the > user input values. My problem is that some of fields on the individual > pdf documents has similar names. So when ever I am setting the values it > is being displayed on both the pages. Is there anyway I can either > rename this fields or give unique page numbers (so that I can refer like > pageNo.fieldname) during the concatination process? Any help will be > truly appreciated.
Use PdfStamper to rename the fields: form = stamper.getAcroFields(); form.renameField("field", "field1"); Then concatenate the forms with PdfCopyFields. See this example from chapter 2 in the book: http://itext.ugent.be/itext-in-action/examples/chapter02/HelloWorldStampCopyStamp.java br, Bruno ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions