Hello,

I'm trying to sign and timestamp my PDF document.
pdfbox 1.8.3
bcmail-jdk15on 1.50
The signing works fine, the Adobe Acrobat Reader shows the certificate
correctly.

Based on the the sample app:
http://media-nation.de/~rayman2200/PDFBox-SignExample.zip

(But the Foxit Reader not! Signing with other PDF library - you know
which - the Foxit Reader shows the certificate right.)

But the timestamping does not work. Calling
.setSignedAttributeGenerator I don't see any timestamp, the size of
the pdf doesn't change.

With gen.generate(msg, true); the exception is:

java.io.IOException: Can't write signature, not enough space

How can I add space for signature?

I don't find any example for timestamping pdf. Could you send me one?

(I can post my source code, if it is necessary.)

Same with BouncyCastle 1.49 with deprecated addSigner method.

--
Viczián István

Reply via email to