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

Tilman Hausherr commented on PDFBOX-45:
---------------------------------------

saveIncremental() doesn't work properly when doing an incremental save and 
there is nothing to sign, see code from yesterday in PDFBOX-3661.

The problem is that some code in COSWriter contains logic for signatures even 
if there's no signing to do.

{{visitFromDictionary()}} is an example, the part "If we reach the pdf 
signature" is hit because the file contains an old signature; COSWriter goes 
through the tree to find out whether there is anything to update. Because 
signatureOffset and byteRangeOffset are set, visitFromDocument() assumes that a 
signing has to be done.

I thought one would just need to ask whether signatureInterface is set, but 
this would break external signing.

> Support incremental save
> ------------------------
>
>                 Key: PDFBOX-45
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-45
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Writing
>            Assignee: Andreas Lehmkühler
>             Fix For: 2.1.0
>
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552835&aid=1157431
> Originally submitted by purplish_cat on 2005-03-05 12:28.
> After opening a PDF file and changing objects out of it, 
> allow to save the changes incrementally to the same file 
> instead of creating a completely new file.
> [comment on SourceForge]
> Originally sent by benlitchfield.
> Logged In: YES 
> user_id=601708
> See forum thread at
> https://sourceforge.net/forum/message.php?msg_id=3032112



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to