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: "kumar1" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, March 24, 2008 7:00 AM
Subject: Re: [iText-questions] ClassCast Exception when using iText API.


> 
> hi,
> 
>    I am getting the same exception. have u resolved it. plz share the
> answer.
> Regards,
> shanthakumar
> 
> Suneel.Naik wrote:
>> 
>> 
>> 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