Adding linked (pdf-)Bookmarks
Posted: Thu Apr 14, 2022 6:19 am
Hey Guys,
i am looking for a way to add bookmarks for a pdf-table of content via code. Adding a simple bookmark or bookmark tree is quite easy and straight forward.
Unfortunately I was not able to find some example or code documentation to link those bookmarks to a specific content of my report. I would expect some method (Bookmark["..."].AddTarget ) or a property to set link target, but there is nothing obvious in the class documentation. PageIndex seems a bit unspecific (and i dont know page index at build time).
Has anyone a idea hot to link a bookmark with a report content?
Cheers,
Oliver
i am looking for a way to add bookmarks for a pdf-table of content via code. Adding a simple bookmark or bookmark tree is quite easy and straight forward.
Code: Select all
Bookmark.Add("My bookmark 1");
Bookmark.Add("My bookmark 1.1");
Bookmark["My bookmark 1.1"].ParentComponent = Bookmark["My bookmark 1"];
Has anyone a idea hot to link a bookmark with a report content?
Cheers,
Oliver