> 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.
It sounds like the form is already flattened. To be sure, you can check for an /AcroFields dictionary within the root/catalog: pdfReader.getCatalog().getAsDict(PdfName.ACROFIELDS) != null OTOH, flattening might remove the fields list but leave the acrofields dictionary as an empty shell, so the above test might not work. You should be able to toString() the acrofields dictionary and see what's there then write code to deal with whatever is/isn't there. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; Disclaimer<Cardiff> DisCard = null; ------------------------------------------------------------------------------ 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
