Tilman Hausherr created PDFBOX-3034:
---------------------------------------

             Summary: Newly created XRef stream has direct root objects
                 Key: PDFBOX-3034
                 URL: https://issues.apache.org/jira/browse/PDFBOX-3034
             Project: PDFBox
          Issue Type: Bug
          Components: Writing
    Affects Versions: 1.8.10, 1.8.11, 2.0.0
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
             Fix For: 1.8.11, 2.0.0


To investigate PDFBOX-3026 I wanted to create a small file with an XRef stream 
by calling {{doc.getDocument().setIsXRefStream(true);}}, but got a /Root entry 
with direct contents, instead of "/Root 1 0 R". This has never occured before, 
because when saving loaded files, the COSObject in-between is kept.

{code}
18 0 obj
<<
/Root <<
/Type /Catalog
/Version /1.5
/Pages 2 0 R
/Metadata 3 0 R
/OutputIntents [4 0 R]
>>
/ID [<848925E7B926C5E7504AD6AC3DFD77AA> <848925E7B926C5E7504AD6AC3DFD77AA>]
/Type /XRef
/Size 19
/Index [1 17]
/W [1 2 0]
/Length 51
>>
stream
{code}
I'll make an appropriate change in PDFXRefStream to change this.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to