[
https://issues.apache.org/jira/browse/PDFBOX-1064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Lehmkühler resolved PDFBOX-1064.
----------------------------------------
Resolution: Not A Problem
Assignee: Andreas Lehmkühler
> Can't set destination of a PDOutlineItem to null
> ------------------------------------------------
>
> Key: PDFBOX-1064
> URL: https://issues.apache.org/jira/browse/PDFBOX-1064
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Environment: Windows 7, Eclipse Helios SR2
> Reporter: Gilad Denneboom
> Assignee: Andreas Lehmkühler
> Priority: Minor
> Labels: bookmarks
>
> Because of the overloaded setDestination() method of PDOutlineItem it's not
> possible to set it to null and therefore remove the Go To Named Destination
> action, like it is possible with PDOutlineItem.setAction(), for example.
> Sample code:
> PDOutlineItem bookmark =
> doc.getDocumentCatalog().getDocumentOutline().getFirstChild();
> bookmark.setDestination(null); // DOES NOT COMPILE
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira