Bug 94260 - PDF file doesn't load or is displayed inconsistently
Summary: PDF file doesn't load or is displayed inconsistently
Status: RESOLVED DUPLICATE of bug 92508
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
: 94261 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-02-23 07:36 UTC by Tomasz Kuchta
Modified: 2016-03-14 13:54 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
The PDF file (7.56 MB, text/plain)
2016-02-23 07:36 UTC, Tomasz Kuchta
Details
try to reconstruct xref table in XRef::getEntry (1.93 KB, text/plain)
2016-03-10 16:39 UTC, Thomas Freitag
Details

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.