[Poppler-bugs] [Bug 87637] pdfseparate+pdftoppm renders different than original file

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Feb 8 13:45:36 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=87637

--- Comment #24 from Thomas Freitag <Thomas.Freitag at alfa.de> ---
I found now the reason:

In case of the PDF of comment 22 the xref table will never be reconstructed by
pdfseparate, because the trailer, the startxref as well as the xref section are
valid, just that the xref section doesn't contain all objects needed to render
the PDF.
And since pdfseparate first calls xref->scanSpecialFlags() which calls
readXRefUntil(-1), the constructXRef branch in readXRefUntil will never be
reached anymore.

I'm not sure if this could not cause problems in other areas, too, but I
finally decided to write a new method getEntryAndReconstruct() which now is
called only by PDFDoc::markObject instead of simple getEntry() and which tries
to reconstruct the xref table if a num should be fetched which doesn't exist in
the xref table.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20160208/d5666aa9/attachment.html>


More information about the Poppler-bugs mailing list