After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 763346 - Page order jumbled when viewing PDF
Page order jumbled when viewing PDF
Status: RESOLVED NOTGNOME
Product: evince
Classification: Core
Component: general
3.16.x
Other Linux
: Normal major
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-03-08 21:48 UTC by laughingcedar
Modified: 2016-09-30 10:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
the PDF that views improperly (373.42 KB, application/pdf)
2016-03-08 21:48 UTC, laughingcedar
Details

Description laughingcedar 2016-03-08 21:48:46 UTC
Created attachment 323439 [details]
the PDF that views improperly

I'm viewing a PDF (attached) with evince, and it's displaying the pages all out of order. Unfortunately this PDF doesn't have printed page numbers, which would make it easier to describe, so here's a spot where it's obvious that the pages are all out of order:

Page 7 is the end of the conclusion and the acknowledgements (which should be page ~30 of this scientific paper)
Page 8 is a page from the methods section. 
Page 9 is the figure captions. 
And page 10 is back into the methods.

The PDF views normally on other systems -- I tried it on a Mac and on Gmail's web-interface preview, and the pages all display in the proper order there.

The problem recurs on a second Linux computer, also running Fedora 22 and Evince 3.16.1 (the latest version in the F22 repository). The incorrect order appears to be the same on both computers.
Comment 1 Germán Poo-Caamaño 2016-03-08 22:49:20 UTC
The issue is in the poppler library, which even happen with a recent poppler (master from today).

You can reproduce the issue by just using poppler utils. Even more, you would see the output giving some hints of the issue:

$ pdftoppm orig.pdf orig
Syntax Warning: Object (70 0) is not a pageDict
Syntax Warning: Failed parsing page 8 using hint tables
Syntax Warning: Object (70 0) is not a pageDict
Syntax Warning: Failed parsing page 8 using hint tables
Syntax Warning: Object (70 0) is not a pageDict
Syntax Warning: Failed parsing page 8 using hint tables
Syntax Warning: Object (70 0) is not a pageDict
Syntax Warning: Failed parsing page 8 using hint tables
Syntax Warning: Object (70 0) is not a pageDict
Syntax Warning: Failed parsing page 8 using hint tables
Syntax Warning: Object (70 0) is not a pageDict
Syntax Warning: Failed parsing page 8 using hint tables
Syntax Warning: Object (70 0) is not a pageDict
Syntax Warning: Failed parsing page 8 using hint tables
Syntax Warning: Object (70 0) is not a pageDict
Syntax Warning: Failed parsing page 8 using hint tables
Syntax Warning: Object (70 0) is not a pageDict
Syntax Warning: Failed parsing page 8 using hint tables
Syntax Warning: Object (70 0) is not a pageDict
Syntax Warning: Failed parsing page 8 using hint tables
Syntax Warning: Object (116 0) is not a pageDict
Syntax Warning: Failed parsing page 10 using hint tables
Syntax Warning: Object (116 0) is not a pageDict
Syntax Warning: Failed parsing page 10 using hint tables
Syntax Warning: Object (116 0) is not a pageDict
Syntax Warning: Failed parsing page 10 using hint tables
Syntax Warning: Object (116 0) is not a pageDict
Syntax Warning: Failed parsing page 10 using hint tables
Syntax Warning: Object (116 0) is not a pageDict
Syntax Warning: Failed parsing page 10 using hint tables
Syntax Warning: Object (116 0) is not a pageDict
Syntax Warning: Failed parsing page 10 using hint tables
Syntax Warning: Object (116 0) is not a pageDict
Syntax Warning: Failed parsing page 10 using hint tables
Syntax Warning: Object (116 0) is not a pageDict
[...]

Please, file a bug in poppler's bugzilla at freedesktop:
https://bugs.freedesktop.org/enter_bug.cgi?product=poppler
Comment 2 Germán Poo-Caamaño 2016-09-30 10:51:40 UTC
Reported in Freedesktop.