See http://itext.ugent.be/library/question.php?id=54.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Mustafa Incel
> Sent: Friday, March 23, 2007 10:59 AM
> To: [email protected]
> Subject: [iText-questions] Vertical alignment goes after
> flattening a form.
>
> 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/
>
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
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/