Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-532

getPageLabels method for PDocumentCatalog class.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.0
    • PDModel
    • None

    Description

      I had a requirement for adding page labels (See PDF Reference
      (http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf, page 374
      (12.4.2 Page Labels). Since PDFBox does not have this functionality
      currently. I ended up implementing it.

      The code contains on public method getPageLabels(), which should become a part of the PDDocumentCatalog API. This method returns an array of page labels. The array size corresponds to the number of pages in the document.

      Attachments

        1. PageLabelExtractor.java
          6 kB
          Navendu Garg
        2. test_pagelabels.pdf
          283 kB
          Navendu Garg
        3. TestPageLabelExtractor.java
          1.0 kB
          Navendu Garg

        Issue Links

          Activity

            People

              jukkaz Jukka Zitting
              navendugarg Navendu Garg
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: