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
            Priority: Minor


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

        

Reply via email to