Bug 94260

Summary: PDF file doesn't load or is displayed inconsistently
Product: poppler Reporter: Tomasz Kuchta <t.kuchta>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: The PDF file
try to reconstruct xref table in XRef::getEntry

Description Tomasz Kuchta 2016-02-23 07:36:01 UTC
Created attachment 121913 [details]
The PDF file

A file 587123.pdf cannot be opened in qpdfview. In Evince, Xpdf and Okular the second page is empty (while it should contain contents), the last page is not displayed (while it should show a picture).

The file can be loaded in Firefox, Chromium and MuPDF.

The file comes from the Govdocs1 data set (http://digitalcorpora.org/corpora/govdocs)
and can be extracted from this archive: http://digitalcorpora.org/corp/files/govdocs1/zipfiles/587.zip

The version tested is 0.4.14, Ubuntu 15.10.

I would be grateful for confirming.
Comment 1 Albert Astals Cid 2016-02-23 08:14:52 UTC
*** Bug 94261 has been marked as a duplicate of this bug. ***
Comment 2 Albert Astals Cid 2016-02-23 08:16:10 UTC
The file is broken as reported by Adobe Reader, someone with time can try to improve the reconstruction mechanism.
Comment 3 Thomas Freitag 2016-03-10 16:36:05 UTC
The problem is not the reconstruction mechanism in poppler, the problem is, that the reconstruction mechanism is not called at all necessary places.

In this case the trailer, the catalog and the first page i.e. are okay, but there are a lot of objects referenced, are in the PDF but not in the xref table.

Therefore I think we should try to fix it.
Comment 4 Thomas Freitag 2016-03-10 16:39:00 UTC
Created attachment 122209 [details]
try to reconstruct xref table in XRef::getEntry

This patch tries to reconstruct the xref table if XRef::getEntry is called for a missing object.
Comment 5 Thomas Freitag 2016-03-14 13:54:48 UTC

*** This bug has been marked as a duplicate of bug 92508 ***

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.