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

Tilman Hausherr commented on PDFBOX-3244:
-----------------------------------------

I'm afraid I won't be able to fix that one myself. Here's what I found, maybe 
this will help the next guy:

- The cause of the error message is likely that unmodified objects are written 
incrementally (e.g. "/XObject 20 0 R" becomes "/XObject 49 0 R", with 49 being 
a new object)
- in addObjectToWrite(), COSBase is null for COSObject 20 in 1.8 so the object 
is added to the write list. In 2.0 it is not null, and isNeedToBeUpdate() is 
false, so the object is skipped.
- in prepareIncrement(), version 2.0 has 41 objects, version 1.8 has only 17. 
Maybe this is because the file uses /ObjStm streams?


> New signature invalidates previous signature
> --------------------------------------------
>
>                 Key: PDFBOX-3244
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3244
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Signing
>    Affects Versions: 1.8.11
>         Environment: Tested with Adobe Acrobat XI Pro v.11.0.14
>            Reporter: Luca Battistelli
>            Priority: Blocker
>         Attachments: provaSign_original.pdf, 
> provaSign_with_second_signature.pdf, 
> provaSign_with_second_signature_by_Tilman.pdf
>
>
> I try to add a visible signature to a pdf file that is already signed with a 
> valid signature, but the second signature invalidates the first one.
> I followed the example in SVN directory
> https://svn.apache.org/viewvc/pdfbox/tags/1.8.11/examples/src/main/java/org/apache/pdfbox/examples/signature/
> See the attachments.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to