Some test text!

Adding a bookmark

To add a bookmark in an existing document.

PDFDoc doc = new PDFDoc(input_path + "numbered.pdf");

// Lets first create the root bookmark item
Bookmark red = Bookmark.Create(doc, "Red");
doc.AddRootBookmark(red);

// We can now associate new bookmarks with page destinations:

// The following example creates an 'explicit' destination (see
// section '8.2.1 Destinations' in PDF Reference for more details)
Destination red_dest = Destination.CreateFit(doc.GetPage(1));
red.SetAction(pdftron.PDF.Action.CreateGoto(red_dest));

Read, add, edit PDF outlines and bookmarks
Full code sample which illustrates how to read and edit existing outline items and create new bookmarks using the high-level API

Get the answers you need: Support