Kevin ,

I have been investigating the Named destinations for bookmarks, and i
remembered your problem. Please try this example to get the names of the
destinations ... I hope it's right :

try {
PDNamedDestination pn = (PDNamedDestination)bookmark.getDestination();  //
The bookmark = A PDOutlineItem object.
if( pn != null ) System.out.println("Page: " + (pageNumber + 1) + " - Named
dest: " + pn.getNamedDestination());
} catch (Exception e) {
e.printStackTrace();
}

When i executed this on one of my PDFs here is the result :
Page: 2 - Named dest: G917701
Page: 3 - Named dest: G976457
Page: 5 - Named dest: G983176
.....

Best regards ,
Hesham

Reply via email to