This is already fixed. Replace in PRAcroForm.java:
public void readAcroForm(PdfDictionary root) {
hashMap = root.hashMap;
pushAttrib(root);
PdfArray fieldlist =
(PdfArray)reader.getPdfObject(root.get(PdfName.FIELDS));
iterateFields(fieldlist, null, null);
}
Best Regards,
Paulo Soares
> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, February 03, 2003 15:27
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] Exception reading a PDF file
>
> Hi guys,
>
> First of all I would like to thankyou Paulo Soarez for his precious work,
> and then I have the following question:
>
> When I try to read a PDF file using iText I get the following exception:
>
>
> java.lang.ClassCastException: com.lowagie.text.pdf.PRIndirectReference
>
> at com.lowagie.text.pdf.PRAcroForm.readAcroForm(Unknown Source)
>
> at com.lowagie.text.pdf.PdfReader.readPdf(Unknown Source)
>
> at com.lowagie.text.pdf.PdfReader.<init>(Unknown Source)
>
> at
> it.deltadator.pdf.PdfFormParser.getFieldNames(PdfFormParser.java:38)
>
> Is that possible that I'm missing a font somewhere in my system?
> If that is not possible, where is the problem?
>
> Thanks.
> Paolo Mosna.
>
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions