Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
The following code snippet also work with Aspose.PDF.Drawing library.
Bookmarks are held in the Document object’s OutlineItemCollection collection, itself in the OutlineCollection collection.
To add a bookmark to a PDF:
The following code snippet shows you how to add a bookmark in a PDF document.
Bookmarks can be nested, indicating a hierarchical relationship with parent and child bookmarks. This article explains how to add a child bookmark, that is, a second-level bookmark, to a PDF.
To add a child bookmark to a PDF file, first add a parent bookmark:
The child bookmark is created just like the parent bookmark, explained above, but is added to the parent bookmark’s Outlines collection
The following code snippets show how to add child bookmark to a PDF document.
All bookmarks in a PDF are held in the OutlineCollection collection. This article explains how to delete all bookmarks from a PDF file.
To delete all bookmarks from a PDF file:
The following code snippets show how to delete all bookmarks from a PDF document.
To delete a particular bookmark from a PDF file:
The Document class’ provides the OutlineCollection collection. The Delete method removes any bookmark with the title passed to the method.
The following code snippets show how to delete a particular bookmark from the PDF document.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.