Get bookmarks unique identifiers

Product: PDFNet

Product Version: 9.3

Hi there,

I have a docx document with a table of content pointing to different chapters.
This document is exported to a PDF file, is there a way to get a unique identifier for each bookmark of the table of content even if the text of the bookmark changed or if a bookmark is inserted between two others, a king of unique paragraph ID.

Thx for your reply

1 Like

Hi,

You should be able to get access to the bookmarks through leveraging the Bookmark class.
https://sdk.apryse.com/api/PDFTronSDK/dotnet/pdftron.PDF.Bookmark.html#pdftron_PDF_Bookmark_Find_System_String_
We have a tutorial which shows how you can navigate bookmarks in a PDF in our sample here:

I also found a community post which goes into detail on how you can traverse all available bookmarks within a PDF:

You should be able to get access to manipulating your bookmarks as dictated in these resources. If you are needing further help, please send our team your input file and let us know exactly what parts of the PDF you are wanting to modify or get access to.

1 Like