On 17/09/2011 19:05, Andy Wu wrote:
> 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}
Well, in that case, you need to make a small adaptation. Instead of
"getAsDict", you need to create a "new PdfDictionary()" for the
/AcroForm entry and a "new PdfArray" for the /Fields. It's not rocket
science, you know ;-)
------------------------------------------------------------------------------
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