Post a link to the PDF and the FDF so that the problem can be reproduced. 
Also check if you are using the latest iText.

Paulo

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, March 20, 2008 6:38 AM
Subject: [iText-questions] ClassCast Exception when using iText API.



Hi all, I am getting the following exception when populating dynamic
data using iText API on a PDF document with place holders for dynamic
data,

And getting the following exception.



The code I am using is

AcroFields fields = pdfStamper.getAcroFields();

fields.setFields(fdfReader); (Exception at this line)



java.lang.ClassCastException

        at com.lowagie.text.pdf.DocumentFont.<init>(Unknown Source)

        at com.lowagie.text.pdf.AcroFields.getAppearance(Unknown Source)

        at com.lowagie.text.pdf.AcroFields.setField(Unknown Source)

        at com.lowagie.text.pdf.AcroFields.setField(Unknown Source)



Any pointers in this regard would be highly appreciated



Thanks & Regards

Suneel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to