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

Andreas Lehmkühler commented on PDFBOX-5086:
--------------------------------------------

[~tilman] was right, it is a bad idea to write to a file which is still open as 
the ondemand parser needs access to the unmodified file. In 2.0 it isn't an 
issue at all as the whole pdf is loaded at the begining.

I've fixed the Setfield example at it works now. Any idea on how to lock the 
file while open so that it isn't possible to write to it?

> DataFormatException after saving
> --------------------------------
>
>                 Key: PDFBOX-5086
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5086
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Tilman Hausherr
>            Assignee: Andreas Lehmkühler
>            Priority: Major
>             Fix For: 3.0.0 PDFBox
>
>         Attachments: SalesUseTaxLA_R-5402_20060705.pdf, 
> SalesUseTaxLA_R-5402_20060705_BAD.pdf
>
>
> Attached file gets corrupted when saved in 3.0.0, but not in 2.0.*.



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

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

Reply via email to