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

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

Got lots of trouble with the reverted commit… parts of the encryption 
dictionary became indirect, and the trailer ID also became indirect. All this 
can probably be fixed. But what's really annoying is this segment from the 
PDF/A test file:
{noformat}
24 0 obj
[750]
endobj
25 0 obj
[278]
endobj
26 0 obj
[1015 667]
endobj
27 0 obj
[778]
endobj
28 0 obj
[611 722]
endobj
29 0 obj
[278]
endobj
30 0 obj
[278 469]
endobj
31 0 obj
[556 556 500 556 556 278 556 556 222 222
500 222 833 556 556 556 556 333 500 278
556 500 722 500 500 500 334]
endobj
32 0 obj
[334]
endobj
33 0 obj
[333]
endobj
34 0 obj
[400]
endobj
35 0 obj
[333 333]
endobj
36 0 obj
[667]
endobj
37 0 obj
[778]
endobj
38 0 obj
[722]
endobj
39 0 obj
[611]
endobj
40 0 obj
[556]
endobj
41 0 obj
[556]
endobj
42 0 obj
[556]
endobj
43 0 obj
[316]
endobj{noformat}
So the change is terribly inefficient. I'll sleep over this, but I think the 
result will be to decide that only dictionaries and COSObjects can be "forced" 
to be updated. Or to set "direct" to true as default for all arrays. Or… 

> Support incremental save
> ------------------------
>
>                 Key: PDFBOX-45
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-45
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Writing
>             Fix For: 3.0.0 PDFBox
>
>         Attachments: XFAFormFiller.java, fontbox-3.0.0-SNAPSHOT.jar, 
> fontbox-3.0.0-SNAPSHOT.jar, pdfbox-3.0.0-SNAPSHOT.jar
>
>
> [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
(v7.6.3#76005)

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

Reply via email to