Hi,
I have a PDF from created by adobe designer. After filling the form with iText,
if I save the form as it is everything is good. If I save the form after
flattening, the vertical alignment of form fields are gone. I am using the
following code piece to fill the form. Any help will be appreciated very much.
PdfReader reader = new PdfReader("in.pdf");
PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("out.pdf");
AcroFields form = stamper.getAcroFields();
form.setField("firstName", "Mustafa");
form.setField("lastName", "Incel");
stamper.setFormFlattening(true);
stamper.close();
Thanks,
Mustafa
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/