Add PDF Bookmarks with Named Destinations with Golang via C++

Possible Usage Scenarios

Named Destinations are special kinds of bookmarks or links in PDF that do not depend on PDF pages. It means that if pages are added or deleted from the PDF, bookmarks may become invalid, but named destinations will remain intact. To create a Named Destination, set the PdfBookmarkEntry.GetDestinationName() property.

Add PDF Bookmarks with Named Destinations

Please see the following sample code, its source Excel file, and its output PDF file. The screenshot shows the bookmarks and named destinations inside the output PDF. The screenshot also describes how to view Named Destinations and that you need the Professional version of Acrobat Reader.

todo:image_alt_text

Sample Code