Can someone give some suggestion on what I could do to remove the overlaying text? By setting stamper formflattening to false is how we were able to see that overlay was happening. Any hint to the cause of the problem is appreciated. Thanks
jthom wrote: > > Thanks for the hints to rename the parent. I bought the IText in action > book. > I was able to rename the parent fields in each page. > > But when the output pdf is generated, the data shown in each page is for > Page1. When we saved the pdf and double clicked on the fields, we can see > that actual values for each page, but they are overlaid on top of the > values from Page1. In Adobe Life Cycle, in design view, it is seen that > the fields from Page1 are getting added to each page. > > Can some one please let me know how can the overlaying of the text on each > page be removed? I want to be able to remove the fields from Page1 that > are getting copied(added) to each page. We are using 2.1.7 jar version of > IText. > > Just for info, code that was added for renaming the parent: > PRAcroForm root = read.getAcroForm(); > PRAcroForm.FieldInformation fin = root.getField(curFieldName); > PdfDictionary finDict = fin.getInfo(); > finDict.put(PdfName.T, new PdfString(newFieldName)); > > > Thanks again. > > > 1T3XT info wrote: >> >> jthom wrote: >>> This is my first time using iText: >>> >>> Could you give little more info in how the parent can be renamed? >> >> Get the /AcroForm from the root. >> Parse the tree with the fields, >> replace the /T value of the field you want to change. >> >> If this is your first time using iText: >> ask a professional to do it for you. >> >> Chapter 18 of "iText in Action - first edition" can help you understand >> what the first three lines of my answer mean. You get the ebook of the >> first edition for free if you purchase the MEAP version of the second >> edition: http://1t3xt.com/docs/book.php ) >> -- >> This answer is provided by 1T3XT BVBA >> http://www.1t3xt.com/ - http://www.1t3xt.info >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - and >> focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> iText-questions mailing list >> iText-questions@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/itext-questions >> >> Buy the iText book: http://www.1t3xt.com/docs/book.php >> Check the site with examples before you ask questions: >> http://www.1t3xt.info/examples/ >> You can also search the keywords list: >> http://1t3xt.info/tutorials/keywords/ >> >> > > -- View this message in context: http://old.nabble.com/Renaming-TextFields-on-different-pages-using-iText-is-not-working..-tp26449014p26780211.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/