Thanks for the suggestion but unfortunately that doesn't resolve the
issue for me as this returns null:
pdfReader().getCatalog().getAsDict(PdfName.ACROFORM)
If it helps when I look at the PdfDictionary returned by
reader.getCatalog() I see the following:
{/Type=/Catalog, /Version=/1.6, /Pages=264 0 R}
Thanks
Andy
On 17/09/2011 12:41, 1T3XT BVBA wrote:
On 16/09/2011 23:30, Andy Wu wrote:
Glad to hear I'm not the first.
Could the file have been corrupted in such a way that Adobe
Reader/Nitro/iText can open it still? Or does an older version of
Adobe Reader exist that could be responsible?
The problem is caused by a tool (I won't name it because I don't want
to make bad publicity for competitors) that creates crappy PDFs. The
"iText in Action" book comes with an example that can be used to fix
forms that are broken like this:
http://itextpdf.com/examples/iia.php?id=236
Plenty of the examples in the book are actually answers to questions
that were once posted to the mailing list ;-)
------------------------------------------------------------------------------
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