Skip to content

Commit

Permalink
PDFBOX-5951: ignore OpenAction that points to orphan page
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1923708 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Feb 10, 2025
1 parent 175750c commit af2f5a4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,11 @@ else if (openAction instanceof PDDestination)
if (page != null)
{
pageIndexOpenActionDest = srcCatalog.getPages().indexOf(page);
if (pageIndexOpenActionDest == -1)
{
LOG.warn("OpenAction entry ignored because destination page doesn't exist");
openAction = null;
}
}
}

Expand Down

0 comments on commit af2f5a4

Please sign in to comment.