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

PDPageDestination page index off by one

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.9, 2.0.0
    • 1.8.10, 2.0.0
    • PDModel
    • None

    Description

      When creating a new bookmark with the same page number as an existing bookmark, the resulting destination is offset by 1 compared to the old destination.

      This results in the bookmark being set for the next page, which could be a non-existing page.

      I've added a class with an example pdf and my own output pdf. Run with argument of a path to where you have the pdf, including a trailing slash.

      Attachments

        1. Archive.zip
          98 kB
          Johanneke Lamberink

        Activity

          People

            tilman Tilman Hausherr
            johanneke Johanneke Lamberink
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: