It may be a dynamic LiveCycle form and iText can't flatten those. You'll have to show us the PDF.
Paulo -----Original Message----- From: Andy Wu [mailto:[email protected]] Sent: Friday, September 16, 2011 4:34 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Form Flattening Hi Paulo, Thanks for the prompt reply, The PDF returned from the client as PdfStamper.getAcroFields().getFields() returns 0 fields so I can't readily loop over the fields to do that. I can certainly call it with the field names having prior knowledge of what should be there but I guess that's not what you meant and it doesn't appear to work. Thanks Andy On 16/09/2011 16:25, Paulo Soares wrote: > Look like they are not generating the appearances. Call > AcroFields.regenerateField() for each field to regenerate the appearances and > make flattening working. > > Paulo > > -----Original Message----- > From: Andy Wu [mailto:[email protected]] > Sent: Friday, September 16, 2011 3:58 PM > To: [email protected] > Subject: [iText-questions] Form Flattening > > Hi All, > > I have an issue with attempting to flatten forms where the data is > disappearing. If I open the original form in Adobe Reader, fill it in > and save it, I have no problem flattening it. > > However when our end clients are filling them in and return them to us, > flattening them with iText results in the data disappearing. I can > flatten the PDF with Nitro PDF Reader and it has no issues with it so > I'm wondering what I could be missing in my iText usage as all the > examples I've seen just point to setFormFlattening( true ). > > Can any experts point me in the right direction? > > Thanks > Andy 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. ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
