pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilad Denneboom (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PDFBOX-1064) Can't set destination of a PDOutlineItem to null
Date Thu, 14 Jul 2011 11:56:00 GMT
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


View raw message