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

PDPageDestination getPageNumber only returns page number when underlying COSArray has a page number

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.8.0-incubator
    • 1.0.0
    • PDModel
    • None

    Description

      When a PDPagesDestinatin has a page referenced, getPageNumber returns (as specified) -1.

      In contrast other PD-Objects like PDOutlineItem are more "user-friendly" findDestinationPage resloves thze stored reference. In my attached patch I added code to getPageNumber to return the page number for referenced PDPages too.

      PDFBox Developers: Submit it to the code base if this fits the idea of the PD-classes.

      Attachments

        Activity

          People

            jukkaz Jukka Zitting
            wulf Wulf Berschin
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: