[
https://issues.apache.org/jira/browse/PDFBOX-3699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15882520#comment-15882520
]
Marco Monacelli commented on PDFBOX-3699:
-----------------------------------------
Hello,
I'm sorry but I do not receive more email from jira and I realized just now of
your message.
I analyzed the problem.
if the file contains a certified signature.
This is invalid if you try to affix a second signature, but not invalid if you
try to sign a prepared for the signatures field.
I suggest to return an exception in case of signing of make a document
certified unless this signature is not visible or is a signature of a prepared
field.
I enclose two sample made with acrobat.
> Regression on signature with certification flag.
> ------------------------------------------------
>
> Key: PDFBOX-3699
> URL: https://issues.apache.org/jira/browse/PDFBOX-3699
> Project: PDFBox
> Issue Type: Bug
> Components: Signing
> Affects Versions: 2.0.2, 2.0.3, 2.0.4
> Reporter: Marco Monacelli
> Priority: Blocker
> Attachments: original_file.pdf,
> signed_2.0.0_ok_previus_signature_but_invisible.pdf,
> signed_2.0.4_previus_signature_ko_but_signature_visible.pdf,
> TEST_PDFBOX_signed_module_acrobat_final_signature.pdf,
> TEST_PDFBOX_signed_module_acrobat.pdf
>
>
> Hello,
> I got some problems signing a certified pdf with a signature with apparence:
> after the signature is applied the previous certification is reported as
> corrupted by Acrobat Reader. If I apply an invisible signature the issue
> doesn't happen.
> I have done a regression analysis using the same code
> - with pdfbox 2.0.0 and 2.0.1, the signature is not shown on the document but
> the certification is still valid
> - with earlier versions, the signature is shown on the document but the
> certification is broken
> The sample certified pdf (original_file.pdf) is in attachment.
> Finally this problem could be related to these tickets:
> 1- https://issues.apache.org/jira/browse/PDFBOX-2816 (PDFBox makes disallowed
> changes when signing a signed document)
> 2- https://issues.apache.org/jira/browse/PDFBOX-45 (Support incremental save)
> I tested my code with the test case file in 1 (acrosigned.pdf), and it works
> well.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]