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

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

The object numbers somehow got mixed up when saving the document for page 2. It 
is related to the delayed on demand loading of indirect objects. I've simply 
fixed the issue by using the highest xref object number of the source document 
for all resulting pdfs so that PDFBox won't reuse an object number of an object 
if an imported page for a new object.

> Split result page missing dictionary after split
> ------------------------------------------------
>
>                 Key: PDFBOX-5489
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5489
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Writing
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Tilman Hausherr
>            Assignee: Andreas Lehmkühler
>            Priority: Major
>             Fix For: 3.0.0 PDFBox
>
>         Attachments: PDFBOX-5489-p2.pdf
>
>
> Splitting the file from PDFBOX-5488 brings up a useless page 2, parts of a 
> dictionary is missing. (tested with the command line application)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to