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.
*** Bug 94261 has been marked as a duplicate of this bug. ***
The file is broken as reported by Adobe Reader, someone with time can try to improve the reconstruction mechanism.
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.
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.
*** 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.