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 680766 - page label is not shown correctly
page label is not shown correctly
Status: RESOLVED NOTGNOME
Product: evince
Classification: Core
Component: PDF
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-07-28 23:09 UTC by Sven
Modified: 2013-03-13 21:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
PDF has two pages: label of first page is "a", label of second page is "i" (12.64 KB, application/pdf)
2012-07-28 23:09 UTC, Sven
Details
Screenshot showing the correct rendering in Evince 3.4.0 (18.53 KB, image/png)
2013-02-17 08:53 UTC, Germán Poo-Caamaño
Details
Screenshot that shows the problem (40.57 KB, image/png)
2013-02-18 01:15 UTC, Germán Poo-Caamaño
Details

Description Sven 2012-07-28 23:09:03 UTC
Created attachment 219806 [details]
PDF has two pages: label of first page is "a", label of second page is "i"

evince doesn't show page labels correctly. 
The attached PDF contains the statement
/PageLabels<</Nums[0<</S/a>>1<</S/r>>]>>
which indicates that the first page's label is "a", and the second page's label is "i". However, for the first page, evince shows an empty label, for the second page it correctly shows "i". It might be a bug in poppler and not evince. Not sure about that.
Comment 1 Sven 2012-07-28 23:10:51 UTC
Here's the latex code to create the attached PDF file:

\pdfcompresslevel 0
\pdfobjcompresslevel 0
%\listfiles
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\pagenumbering{alph}
Test
\newpage
\pagenumbering{roman}
Test
\end{document}
Comment 2 André Klapper 2012-07-29 10:22:53 UTC
If it might be a bug in poppler you should tell us your exact poppler and evince versions that you use.

Cannot reproduce the bug with evince-3.2.1-2.fc16.i686, poppler-0.18.0-3.fc16.i686.
Comment 3 Sven 2012-07-29 13:11:44 UTC
I reproduced the bug on ubuntu precise (evince 3.4.0, poppler 0.18.4)
and Gentoo (evince 2.32.0, I compiled it against poppler 0.18.4 and poppler 0.20.2).
Comment 4 Germán Poo-Caamaño 2013-02-17 08:53:08 UTC
Created attachment 236437 [details]
Screenshot showing the correct rendering in Evince 3.4.0

This is Evince 3.4.0/poppler 0.18.4 in Ubuntu 12.04.  It renders both page numbers (a and i).  Same thing with Evince 3.7/poppler 0.22.1.

May you attach a screenshot with the output? Can you try with a newer Evince/poppler/cairo?
Comment 5 Sven 2013-02-17 14:42:46 UTC
Do you see the box in the toolbar, left to the (1 of 2) in your screenshot ?
It is empty. It should actually show "a". For page 2 of 2 it will show "i" as it should. Your screenshot is really a confirmation of the problem.
Comment 6 Sven 2013-02-17 15:07:43 UTC
The problem still exists with evince 3.6.1 and poppler 0.20.5. Didn't try any newer versions.

Also, sorry if your thought I was talking about the rendering of the PDF the whole time. I'm really just talking about the box in the toolbar, which is to show the page label.
Comment 7 Germán Poo-Caamaño 2013-02-18 01:15:11 UTC
Created attachment 236517 [details]
Screenshot that shows the problem

Indeed, I thought you were talking about the rendering.  Thanks for the clarification.

The problem can be also seen in the thumbnails, as shown in the screenshot.
Comment 8 Germán Poo-Caamaño 2013-02-18 01:36:39 UTC
It turned out this is a bug in poppler, not in Evince.

Please, follow the bug in https://bugs.freedesktop.org/show_bug.cgi?id=61034
Comment 9 Sven 2013-03-13 21:31:36 UTC
Updated to poppler 0.22.2 and the problem is fixed.