Bugzilla – Bug 748257
evince, okular, xpdf (libpoppler) Shows Wrong Page Order
Last modified: 2012-04-02 11:08:41 UTC
Created attachment 477242 [details]
SUSE Manager API Documentation showing display problems in evince, okular, and xpdf
How to proceed:
1. Start okular, evince, or xpdf.
2. Open the attached PDF in the reader
3. Browse through the PDF and you will see:
a. Three pages which belong to the table of contents
b. A chapter "Sample Scripts"
c. A chapter "Frequently Asked Questions"
d. A chapter "Namespaces 1: activationkey"
e. The table of contents continued
The pages b, c, and d must not be there. The table of contents is interrupted by these pages. This is obviously wrong. Interestingly, everything else is fine.
As all three applications share the common library libpoppler, it should be very likely this is the piece to blame. :)
However, when viewed with Adobe Acrobat reader or GhostScript (gs), the PDF is correctly displayed.
Another issue, maybe related: When starting evince or xpdf on the command line, they give the following error message:
Error: Missing 'endstream'
Process the PDF with pdfjam (package texlive-bin):
$ pdfjam book_susemanager_apidoc.pdf --outfile good.pdf
After this treatment, the PDF seems to be "healed" and can be viewed by evince, okular, and xpdf again.
However, this is NOT the solution! It's just a workaround.
"evince has trouble displaying pages in PDF file"
As Frank found, this is also in the RH Bugzilla:
This is rather serious. It kept us busy for several days. If a fix takes
longer, I'd vote to downgrade libpoppler.
$ cat /etc/SuSE-release
openSUSE 12.1 (x86_64)
VERSION = 12.1
CODENAME = Asparagus
$ acroread -version
$ okular --version
KDE Development Platform: 4.7.4 (4.7.4) "release 11"
$ evince --version
GNOME Document Viewer 3.2.1
$ xpdf -v
xpdf version 3.02
Copyright 1996-2007 Glyph & Cog, LLC
$ rpm -q libpoppler18
Vincent, this seems to belong to your domain.
(In reply to comment #1)
> $ pdfjam book_susemanager_apidoc.pdf --outfile good.pdf
there is a page range missing. This should be:
$ pdfjam book_susemanager_apidoc.pdf - --outfile good.pdf
(note the extra lonely minus char, which means all pages...)
adding bili to CC, any ideas
I filed the bug upstream: https://bugs.freedesktop.org/show_bug.cgi?id=46459
I don't really have time to do a real investigation, though.
(In reply to comment #2)
> This is rather serious. It kept us busy for several days. If a fix takes
> longer, I'd vote to downgrade libpoppler.
Unfortunately, we can't downgrade: the ABI of libpoppler is changing every now and then, and downgrading wouldn't help apps to use the new code unless we rebuild all of them. And instead, we'd get security issues, I guess.
Created attachment 478682 [details]
Hib Eris provides this patch via https://bugs.freedesktop.org/show_bug.cgi?id=46459
The document from attachment 477242 [details] seems to contain an incorrect Hints table:
- the specified length of the stream of the Hints table is incorrect.
- even with a corrected length, parsing the hints table stream results in
incorrect page offsets.
I think the best thing to do here is to not parse the hints table because of
the incorrect stream length.
Can someone try the package from home:vuntz:branches:openSUSE:12.1:Update/poppler and double-checks it fixes the issue?
Probably I'm blind, but I can't find your repo. Neither in OBS nor IBS. Do you have a link? :)
Sorry, it wasn't published by default, here it is: http://download.opensuse.org/repositories/home:/vuntz:/branches:/openSUSE:/12.1:/Update/standard/
Thanks Vincent for the bugfix.
After I've installed the packages libpoppler-glib8, libpoppler18, and poppler-tools it works!
Thanks a lot!
I'll create a NEEDINFO for Julian to confirm if it works.
Works for me.
Ok, I think, we can close this bug for now.
Thanks to all! :-)
This was a very annoying bug, many thanks for fixing it!
From the repo name that Vincent posted, I guess it will be available soon as an online update for 12.1?
(In reply to comment #16)
> From the repo name that Vincent posted, I guess it will be available soon as an
> online update for 12.1?
No, we need to ask maintenance.
Maintenance team: can we push this patch as an update? For the full diff, see https://build.opensuse.org/package/rdiff?opackage=poppler&oproject=openSUSE%3A12.1%3AUpdate&package=poppler&project=home%3Avuntz%3Abranches%3AopenSUSE%3A12.1%3AUpdate&rev=2
Ok, please submit to openSUSE:12.1:Update:Test
This is an autogenerated message for OBS integration:
This bug (748257) was mentioned in
https://build.opensuse.org/request/show/109103 12.1 / poppler
*** Bug 746053 has been marked as a duplicate of this bug. ***
openSUSE-RU-2012:0446-1: An update that has one recommended fix can now be installed.
Category: recommended (moderate)
Bug References: 748257
openSUSE 12.1 (src): poppler-0.18.0-2.3.2, poppler-qt-0.18.0-2.3.1