[Poppler-bugs] [Bug 33401] New: Page index calculation from pagelabel fails on multiple pagelabel prefixes

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jan 24 03:54:13 PST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=33401

           Summary: Page index calculation from pagelabel fails on
                    multiple pagelabel prefixes
           Product: poppler
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: medium
         Component: general
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: kellner at kit.edu


Created an attachment (id=42365)
 View: https://bugs.freedesktop.org/attachment.cgi?id=42365
 Review: https://bugs.freedesktop.org/review?bug=33401&attachment=42365

proposed patch

A PDF document can use page label prefixes, for example, to label
only inside a chapter ("A-1" .. "A-<n>", "B-1" .. "B-<m>" et cetera).
When calculating a page index for a given label, poppler will
disregard the page range for all preceding prefixes that do not
match the given prefix.

In the example above, PageLabelInfo::labelToIndex("B-2") will result
in a wrong page index, because the length of the previous labeling
interval with prefix "A-" will not be used to increment the counter
'base'.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list