Thanks a lot for the fast response, I checked the chapter you mentioned and the following option really did the trick:
form.setExtraMargin(0,-2); I have to check again though as it looks like not all the fields need the same margin. It's corrected for most of the fields, some of them are too high up now. But I'll see about that, thanks again! Cheers 1T3XT info wrote: > > pgruetter wrote: >> Hi all >> >> We created several PDF forms with Adobe LiveCycle Designer 8.2 ES. We >> load >> these PDF files as templates in iText and fill out the fields and create >> the >> static form with stamper.setFormFlattening(true); >> >> Problem: >> In the PDF template, the labels and the text fields are perfectly aligned >> if >> filled out manually. >> After iText fills out the PDF form, the text fields are not aligned >> anymore, >> the text is vertically lower. >> If we disable FormFlattening, you can edit the resulting PDF and can see, >> that the fields are actually lower than in the original PDF. >> >> Does anybody have an idea why that is? >> Is this a know problem? Are there any solutions? > > Read section 16.1.5 if you have the first edition of "iText in Action". > Read section 8.4.2 if you have the MEAP of the second edition. > -- > This answer is provided by 1T3XT BVBA > http://www.1t3xt.com/ - http://www.1t3xt.info > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > 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/Adobe-PDF-forms---Alignment-broken-when-filled-out-with-iText-tp28012683p28015447.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ 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/