Hi

I try to run the com.lowagie.examples.general.copystamp.Register.java example, 
but it's doesn't work fine. I use itext-1.4.8.jar.

            // we create a reader for a certain document
            PdfReader reader = new 
PdfReader("C:\\Temp\\Itext\\SimpleRegistrationForm.pdf");
            // filling in the form
            PdfStamper stamp1 = new PdfStamper(reader, new 
FileOutputStream("C:\\Temp\\Itext\\registered.pdf"));
            AcroFields form1 = stamp1.getAcroFields();
->         form1.setField("name", "Bruno Lowagie");
            form1.setField("address", "Baeyensstraat 121, Sint-Amandsberg");
            form1.setField("postal_code", "BE-9040");
            form1.setField("email", "[EMAIL PROTECTED]");
            stamp1.close();

This error message is generated by line form1.setField(" ...

 java.lang.VerifyError: com.lowagie.text.pdf.BidiLine
 at com.lowagie.text.pdf.ColumnText.addWaitingPhrase(ColumnText.java:337)
 at com.lowagie.text.pdf.ColumnText.go(ColumnText.java:766)
 at com.lowagie.text.pdf.ColumnText.go(ColumnText.java:753)
 at com.lowagie.text.pdf.ColumnText.showTextAligned(ColumnText.java:1064)
 at com.lowagie.text.pdf.TextField.getAppearance(TextField.java:290)
 at com.lowagie.text.pdf.AcroFields.getAppearance(AcroFields.java:686)
 at com.lowagie.text.pdf.AcroFields.setField(AcroFields.java:1213)
 at com.lowagie.text.pdf.AcroFields.setField(AcroFields.java:1161)
 at com.lowagie.examples.general.copystamp.Register.main(Register.java:52)

I don't know what is wrong, it's all your example files.

Thank you.

Rémi


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to