Class Bookmark_Api
java.lang.Object
com.ironsoftware.ironpdf.internal.staticapi.Bookmark_Api
The type Bookmark api.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBookmarks
(InternalPdfDocument internalPdfDocument) Retrieve all bookmarks within this PDF, recursively retrieve all children of bookmarks within this collection, and return a flat liststatic void
insertBookmark
(InternalPdfDocument internalPdfDocument, int pageIndex, String text, String parentText, String previousText) Insert a new bookmarkstatic void
insertBookmarkAsFirstChild
(InternalPdfDocument internalPdfDocument, int pageIndex, String text, String parentText) Insert a new bookmarkstatic void
insertBookmarkAtStart
(InternalPdfDocument internalPdfDocument, int pageIndex, String text) Insert a new bookmark
-
Constructor Details
-
Bookmark_Api
public Bookmark_Api()
-
-
Method Details
-
getBookmarks
Retrieve all bookmarks within this PDF, recursively retrieve all children of bookmarks within this collection, and return a flat list- Parameters:
internalPdfDocument
- the internal pdf document- Returns:
- A flattened list of all bookmarks in this collection and all of their children
-
insertBookmarkAsFirstChild
public static void insertBookmarkAsFirstChild(InternalPdfDocument internalPdfDocument, int pageIndex, String text, String parentText) Insert a new bookmark- Parameters:
internalPdfDocument
- the internal pdf documentpageIndex
- The zero based page number to link to. E.g. Page 1 has a PageIndex of 0text
- The display text for the link.parentText
- parent bookmark text. set to null for insert at the top
-
insertBookmark
public static void insertBookmark(InternalPdfDocument internalPdfDocument, int pageIndex, String text, String parentText, String previousText) Insert a new bookmark- Parameters:
internalPdfDocument
- the internal pdf documentpageIndex
- The zero based page number to link to. E.g. Page 1 has a PageIndex of 0text
- The display text for the link.parentText
- parent bookmark text. set to null for insert at the toppreviousText
- previous bookmark text. set to null for insert at first of its siblings
-
insertBookmarkAtStart
public static void insertBookmarkAtStart(InternalPdfDocument internalPdfDocument, int pageIndex, String text) Insert a new bookmark- Parameters:
internalPdfDocument
- the internal pdf documentpageIndex
- The zero based page number to link to. E.g. Page 1 has a PageIndex of 0text
- The display text for the link.
-