Bug 106758

Summary: [pdfunite] incorrect trailer /Size
Product: poppler Reporter: Diego Nieto Cid <dnietoc>
Component: utilsAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Diego Nieto Cid 2018-05-31 16:06:13 UTC
pdfunite produces a PDF whose trailer contains a /Size property with the wrong value

    $ gs -q -dNODISPLAY -c "(page1.pdf) (r) file runpdfbegin pdfpagecount = quit"
    1
    $ pdfunite page1.pdf page1.pdf page1.pdf out.pdf
    $ gs -q -dNODISPLAY -c "(out.pdf) (r) file runpdfbegin pdfpagecount = quit"
    **** Warning: Discovered more enties in xref than declared in trailer /Size
    3
    $ grep -a -C1 xref out.pdf 
    endobj
    xref
    0 98
    --
    <</Size 80 /ID [(;�L��j�=Io��0�@) (;�L��j�=Io��0�@) ] /Root 93 0 R >> 
    startxref
    264175
Comment 1 Daniel Stone 2018-08-20 22:27:51 UTC
Unfortunately the content of this bug cannot be migrated to GitLab, as Bugzilla produces invalid content when trying to export it to XML. I'm closing this here, but it can be reopened directly at https://gitlab.freedesktop.org/poppler/poppler/issues/new

Sorry for the inconvenience.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.