You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2018/12/04 11:47:00 UTC

[jira] [Commented] (PDFBOX-4393) PDF signature invalid after second interactive field signed

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

Tilman Hausherr commented on PDFBOX-4393:
-----------------------------------------

I can reproduce the effect :-( Sadly no good idea yet what is happening. In the past, we had this type of trouble when an indirect object was changed into a direct object but I didn't find anything like that by looking. Only thing I noticed is that signing with AR adds a metadata in the root.

Re "certified" you *did* certify the document. I assume you used the CreateSignature2 example. There is a code segment "Optional: certify".

Small (unrelated) thing: in the signature stream you have stroke and then fill. The fill will be ignored. You should use the combined method.
{code}
/DeviceRGB cs
0.502 0.502 0.502 sc
/DeviceRGB CS
0 0 0 SC
1 w
0 0 296.96 72 re
S
f
...
{code}

> 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_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.pdg) 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
(v7.6.3#76005)

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