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.
Regards,

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();

pdfBookmarkEditor.BindPdf("c:\\aspose.pdf.sample.bookmarks.pdf");

pdfBookmarkEditor.ExportBookmarksToXML("c:\\$bookmarks.xml");

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.
Regards,

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.