We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Can't get bookmark action by pdfBookmarkEditor.ExtractBookmarks()

I try to extract bookmarks from existing pdf file and get collection of bookmarks, but in each bookmark the action is null.

If I use ExportBookmarksToXML func, each bookmark has Title, Action and/or Page property.

Why? I have to use ExportBookmarksToXML to get full information of bookmarks?

Hi Jason,

Please share a sample file with us, so we could test the issue with that. You’ll be updated with the results accordingly.

We’re sorry for the inconvenience.

Attached aspose.pdf.sample.bookmarks.pdf is the pdf doc w/ 3 bookmarks (2 goto and 1 uri), and attached $bookmarks.xml is the bookmark xml doc exported by ExportBookmarksToXML.

My code is:

PdfBookmarkEditor pdfBookmarkEditor = new PdfBookmarkEditor();



Bookmarks bms = pdfBookmarkEditor.ExtractBookmarks();

foreach (Bookmark bm in bms)

{string action = bm.Action;}

bm.Action is always NULL.

Hi Jason,

I have reproduced this problem at my end and logged it as PDFKITNET-16364 in our issue tracking system. Our team will look into this issue and you’ll be updated via this forum thread once it is resolved.

We’re sorry for the inconvenience.

The issues you have found earlier (filed as 16364) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.