Get Bookmarks from PDF Document
To get the bookmarks, loop through the Outlines collection and get each bookmark in OutlineItemCollection. The OutlineItemCollection provides access to the bookmarks’ attributes. The following code snippet shows you how to get bookmarks from the PDF file.
Getting a Bookmark’s Page Number
Once you have added a bookmark you can find out what page it is on by getting the destination PageNumber associated with the Bookmark object. The following code snippet is based on com.aspose.pdf.facades package.