Bug 61034

Summary: PDF page labels not shown properly
Product: poppler Reporter: Germán Poo-Caamaño <gpoo+bfdo>
Component: glib frontendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: sven.koehler
Version: unspecified   
Hardware: Other   
OS: All   
URL: https://bugzilla.gnome.org/show_bug.cgi?id=680766
Whiteboard:
i915 platform: i915 features:
Attachments: PDF test case

Description Germán Poo-Caamaño 2013-02-18 01:34:01 UTC
Created attachment 75015 [details]
PDF test case

This bug was reported in https://bugzilla.gnome.org/show_bug.cgi?id=680766

"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.

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}
"

When I open the PDF file with poppler-glib-demo and I try to get the information for each page, I only get the Page Label for the second page ('i'), but the first one is empty.

I do not know whether this problem is specific to the glib fronted or is general.

FWIW, I tested it with poppler master (df35562)
Comment 1 Albert Astals Cid 2013-02-18 18:48:38 UTC
Fixed, thanks for the report

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.