pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4393) PDF signature invalid after second interactive field signed
Date Wed, 05 Dec 2018 12:03:00 GMT

    [ https://issues.apache.org/jira/browse/PDFBOX-4393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16709979#comment-16709979

Tilman Hausherr commented on PDFBOX-4393:

Add this code before calling addSignature:
PDResources res = acroForm.getDefaultResources();
My new theory is that Adobe didn't like that it added these two. So we add it ourselves. However....
we do already add it when creating the AcroForm but didn't update it which is why my (now
deleted) code no longer worked after I corrected the typo.

> PDF signature invalid after second interactive field signed
> -----------------------------------------------------------
>                 Key: PDFBOX-4393
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4393
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Signing
>    Affects Versions: 2.0.12
>         Environment: Windows
>            Reporter: Martin Klíma
>            Priority: Major
>         Attachments: image-2018-12-04-11-14-01-586.png, image-2018-12-04-11-14-32-676.png,
streamserve_test_sig0.pdf, streamserve_test_sig0_saved.pdf, streamserve_test_sig0_saved_signed
by PDFBox.pdf, streamserve_test_sig0_saved_signed by PDFBox_then_signed by AR.pdf, streamserve_test_sig0_signed
by PDFBoxNEW.pdf, streamserve_test_sig0_signed by PDFBoxNEW_signed by AR.pdf, streamserve_test_sig2.pdf,
streamserve_test_sig3.pdf, streamserve_test_sig3.signed.pdf
> Hi guys,
> I stumped on the problem with PDFBox and interactive field signing. I have PDF generated
with OpenText StreamServe with two interactive fields for signing. See example 1 (streamserve_test_sig0.pdf)
in attachement.
> When I use Adobe Reader I can sign both of the visual fields just fine but when I use
PDFBox to sign one of this field the following signature is marked as invalid. Doesn't matter
if I use PDFbox or sign it manually with Adobe Reader See example 3: 
>  *  streamserve_test_sig3.pdf (signed by PDFBox) - valid
>  *  streamserve_test_sig3.signed.pdf (signed 2nd by Adobe Reader) - invalid
> !image-2018-12-04-11-14-01-586.png|width=582,height=269!
> Also last example - when it´s signed first by Adobe Reader and then with PDFBox the
signature seems valid but it says the document was "certified". See example 2 (streamserve_test_sig2.pdf)
> !image-2018-12-04-11-14-32-676.png|width=591,height=283!
> What could be wrong? When is signed whole document with PDFBox it works just fine.
> Thanks for response,
> Martin

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org

View raw message