Signing PDF

"Valentin Ts. Ivanov" <[email protected]>
Newsgroups gmane.comp.java.lib.itext.general
Message-ID <[email protected]>
Hi,



I use iText5.5.2 and BC1.51 and I found out that I can't sign some pdf files in Java. I have attached ok.pdf (I sign it successfully) and nok.pdf with the exception on signing :

java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V

       at com.itextpdf.xmp.impl.XMPMetaParser.createDocumentBuilderFactory(XMPMetaParser.java:423)

       at com.itextpdf.xmp.impl.XMPMetaParser.<clinit>(XMPMetaParser.java:71)

       at com.itextpdf.xmp.XMPMetaFactory.parseFromBuffer(XMPMetaFactory.java:167)

       at com.itextpdf.xmp.XMPMetaFactory.parseFromBuffer(XMPMetaFactory.java:153)

       at com.itextpdf.text.pdf.PdfStamperImp.close(PdfStamperImp.java:337)

       at com.itextpdf.text.pdf.PdfSignatureAppearance.preClose(PdfSignatureAppearance.java:1315)

       at com.itextpdf.text.pdf.security.MakeSignature.signDetached(MakeSignature.java:140)

       at org.btrust.signer.PDFSigner.initSignPDF(PDFSigner.java:546)



Until now I have used iText5.4.2 and BC1.49 -and had no problems with signig.

What could be the reason for that? Can someone try to sign the nok.pdf file?



Best Regards

Valentin Ivanov

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk

_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
nok.pdf (application/pdf, 386.6 KB) - not displayed
nok.pdf (application/pdf, 109.6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.