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

Tilman Hausherr commented on PDFBOX-5039:
-----------------------------------------

I got the {{testSaveIncrementalAfterSignWithCommentNeedToBeUpdatedTrue()}} test 
to work:

- added {{addSimpleCommentNeedToBeUpdatedTrue}} at line 421 and 441 (after 
{{load()}})
- added {{objectsToWrite.add(doc.getPage(0).getCOSObject());}} at line 463 
(before {{saveIncremental}})
- commented {{SigUtils.setMDPPermission(document, signature, 2);}} in 
CreateSignature.java, this is if you want to forbid all changes


> Annotations with the saveIncrement method are not added to a signed PDF 
> document
> --------------------------------------------------------------------------------
>
>                 Key: PDFBOX-5039
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5039
>             Project: PDFBox
>          Issue Type: Improvement
>    Affects Versions: 2.0.22
>            Reporter: Anze Germovsek
>            Priority: Major
>         Attachments: TestAddAnnotationOnExistingSignPdf.java
>
>
> When I add an annotation to an existing signed PDF document, it is not 
> visible changes in the new saved document with method *saveIncremental*.
> However, if I use the *save* method, the signed document is corrupted.
> I tested in version 2.0.22-SNAPSHOT with test on attachments: 
> TestAddAnnotationOnExistingSignPdf.java
> Can you please explain to me what I am doing wrong?
> Is it known in which version and when the pdfbox should allow adding various 
> annotations to signed documents?
> Thanks
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to