Sorry but it is in a blob column. The interesting thing is now it is magically working again.
Doug -----Original Message----- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 14, 2006 5:39 PM To: Doug James; [email protected] Subject: Re: [iText-questions] PdfLiteral ClassCastException Probably saving it in a database text field instead of binary. ----- Original Message ----- From: "Doug James" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, March 14, 2006 10:19 PM Subject: [iText-questions] PdfLiteral ClassCastException I have a PDF document with form fields. If I open the document and use a stamper to re-write the file to and from my local file system it seems to work fine (stamper.setFormFlattening(true);). But if I put the form in a database and pull it out and do the same I get a ClassCastException reference: java.lang.ClassCastException: com.lowagie.text.pdf.PdfLiteral at com.lowagie.text.pdf.PdfStamperImp.flatFields()V(Unknown Source) at com.lowagie.text.pdf.PdfStamperImp.close(Ljava/util/HashMap;)V(Unknown Source) at com.lowagie.text.pdf.PdfStamper.close()V(Unknown Source) Any ideas or suggestions on what might be causing this problem? Doug James Software Engineer Benefitfocus.com, Inc. ************************************************************************ **************** BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended only for the individual or entity to which it is addressed and may contain information that is confidential and protected by law. Unauthorized review, use, disclosure, or dissemination of this communication or its contents in any way is prohibited and may be unlawful. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please notify the original sender immediately by e-mail or telephone, return the original message to the original sender or to [EMAIL PROTECTED], and destroy all copies or derivations of the original message. Thank you. (BFeComNote Rev. 08/01/2005) ************************************************************************ *************** ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions **************************************************************************************** BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended only for the individual or entity to which it is addressed and may contain information that is confidential and protected by law. Unauthorized review, use, disclosure, or dissemination of this communication or its contents in any way is prohibited and may be unlawful. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please notify the original sender immediately by e-mail or telephone, return the original message to the original sender or to [EMAIL PROTECTED], and destroy all copies or derivations of the original message. Thank you. (BFeComNote Rev. 08/01/2005) *************************************************************************************** ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
