  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | JSP - A mailing list about Java Server Pages specification and reference | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Error in PDF file after filling in and signing | Error in PDF file after filling in and signing 2006-07-25 - By Eliasen Jan
Back Hi I have a PDF file (http://www.eliasen.dk/files/20031008 TakeBack.pdf <http:/ /www.eliasen.dk/files/20031008 TakeBack.pdf> ) which has some funny functionality. If you open it, you can see that at the top there are some language-buttons. If you press any language-button, all text in the PDF formular except the text you have filled in yourself, changes to the language of your choice. But if I fill in values into the fields and then sign the document, these buttons stop working. I can still click the buttons, but instead of the text switching to another language, the text disappears all together :-( I have placed my code to fill in values into the Form and signing the form at http://www.eliasen.dk/files/PDF_Assembler_External.cs <http://www.eliasen.dk /files/PDF_Assembler_External.cs> for you to look at. Also, an XML file is needed to run the code, because the PDF fields get their values from this XML file. It is placed in http://www.eliasen.dk/files/Input.xml <http://www.eliasen .dk/files/Input.xml> . I have placed the three file in a zip file at http://www.eliasen.dk/files /Signing a PDFDocument.zip <http://www.eliasen.dk/files/Signing a PDFDocument .zip> In order to test the code, you will need a valid certificate, as I haven't included mine :-) Any thoughts are very welcome. Med venlig hilsen __ ____ ____ ____ ____ ____ ____ ____ __ Jan Eliasen
WM-data Fredrik Bajers Vej 1 9220 Aalborg ?st Tel.: +45 9630 5800, direkte: +45 9630 5818 Mobil: +45 2518 8024, fax: +45 9630 5805 mailto: jaela@(protected) http://www.wmdata.dk
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=062491308-25072006><FONT face=Arial size=2>Hi</FONT></SPAN></DIV> <DIV><SPAN class=062491308-25072006><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=062491308-25072006><FONT face=Arial size=2>I have a PDF file (</FONT><A href="http://www.eliasen.dk/files/20031008 TakeBack.pdf"><FONT face=Arial color=#000000 size=2>http://www.eliasen.dk/files/20031008 TakeBack.pdf</FONT></A><FONT face=Arial size=2>) </FONT></SPAN><SPAN class=062491308-25072006><FONT face=Arial size=2>which has some funny functionality.</FONT></SPAN></DIV> <DIV><SPAN class=062491308-25072006><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=062491308-25072006><FONT face=Arial size=2>If you open it, you can see that at the top there are some language-buttons. If you press any language-button, all text in the PDF formular except the text you have filled in yourself, changes to the language of your choice. But if I fill in values into the fields and then sign the document, these buttons stop working. I can still click the buttons, but instead of the text switching to another language, the text disappears all together :-(</FONT></SPAN></DIV> <DIV><SPAN class=062491308-25072006><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=062491308-25072006><FONT face=Arial size=2>I have placed my code to fill in values into the Form and signing the form at </FONT><A href="http://www.eliasen.dk/files/PDF_Assembler_External.cs"><FONT face=Arial color=#000000 size=2>http://www.eliasen.dk/files/PDF_Assembler_External.cs</FONT></A><FONT face=Arial size=2> </FONT></SPAN><SPAN class=062491308-25072006><FONT face=Arial size=2>for you to look at. Also, an XML file is needed to run the code, because the PDF fields get their values from this XML file. It is placed in </FONT><A href="http://www.eliasen.dk/files/Input.xml"><FONT face=Arial color=#000000 size=2>http://www.eliasen.dk/files/Input.xml</FONT></A><FONT face=Arial size=2>.</FONT></SPAN></DIV> <DIV><SPAN class=062491308-25072006><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=062491308-25072006><FONT face=Arial size=2>I have placed the three file in a zip file at <A href="http://www.eliasen.dk/files/Signing a PDFDocument.zip">http://www.eliasen .dk/files/Signing a PDFDocument.zip</A></FONT></SPAN></DIV> <DIV><SPAN class=062491308-25072006></SPAN><FONT face=Arial size=2></FONT> </DIV> <DIV><SPAN class=062491308-25072006><FONT face=Arial size=2>In order to test the code, you will need a valid certificate, as I haven't included mine :-)</FONT></SPAN></DIV> <DIV><SPAN class=062491308-25072006><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=062491308-25072006><FONT face=Arial size=2>Any thoughts are very welcome.</FONT></SPAN></DIV> <DIV><SPAN class=062491308-25072006><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=062491308-25072006><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=062491308-25072006></SPAN><SPAN lang=DA style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-ansi-language: DA">Med venlig hilsen<BR></SPAN><SPAN lang=DA style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-ansi-language: DA">__ ____ ____ __ ____ ____ ____ ____ _____<BR></SPAN><STRONG><SPAN lang=DA style="FONT-FAMILY: Arial; mso-ansi-language: DA">Jan Eliasen</SPAN></STRONG><SPAN lang=DA style="mso-ansi-language: DA"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></DIV> <DIV class=Section1> <DIV> <P><SPAN lang=DA style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-ansi-language: DA">WM-data<BR> <SPAN class=SpellE>Fredrik</SPAN> Bajers Vej 1<BR><SPAN class=GramE>9220 Aalborg</SPAN> ?st<BR><SPAN class=SpellE>Tel</SPAN>.: +45 9630 5800, direkte: +45 9630 5818<BR>Mobil: +45 2518 8024, fax: +45 9630 5805<BR>mailto: jaela@(protected)<BR>http://www.wmdata.dk<o:p></o:p></SPAN></P></DIV></DIV> <DIV> </DIV></BODY></HTML>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV __ ____ ____ ____ ____ ____ ____ ____ ____ ____ iText-questions mailing list iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions
|
|
 |