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

PDPageDestination page index off by one

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.9, 2.0.0
    • Fix Version/s: 1.8.10, 2.0.0
    • Component/s: PDModel
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: