[
https://issues.apache.org/jira/browse/PDFBOX-2786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14540929#comment-14540929
]
Tilman Hausherr commented on PDFBOX-2786:
-----------------------------------------
I assume you mean the posting of Noam from last week. He got -1 because a named
destination couldn't be looked up. And the method getPageNumber() he mentioned
is not the one of PDPageDestination discussed here, but of PDFTextStripper in
1.8 (not in the trunk). The reason for the -1 was that we were not processing
the /Dests document catalog entry. This has been fixed in PDFBOX-2793.
> PDPageDestination page index off by one
> ---------------------------------------
>
> Key: PDFBOX-2786
> URL: https://issues.apache.org/jira/browse/PDFBOX-2786
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 1.8.9, 2.0.0
> Reporter: Johanneke Lamberink
> Assignee: Tilman Hausherr
> Fix For: 1.8.10, 2.0.0
>
> Attachments: Archive.zip
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]