I'm trying to write a small utility that extracts the
bookmarks with the page numbers. Extracting the
bookmarks was fine. When extracting the page numbers I
PDPageDestination dest = (PDPageDestination)
curItem.getDestination(); // curItem is of type
The getDestination method calls
PDDestination.create( node.getDictionaryObject( "Dest" ) );
node.getDictionaryObject( "Dest" ) returns COSString in
my case (which however contains an
ByteArrayOutputStream). The PDDestination.create method
only runs succesful if the type is COSArray. Therefore
the getDestination fails. (I'm using 0.7).
Log in to post a comment.