Class Bookmark_Api
java.lang.Object
com.ironsoftware.ironpdf.internal.staticapi.Bookmark_Api
The type Bookmark api.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetBookmarks(InternalPdfDocument internalPdfDocument) Retrieve all bookmarks within this PDF, recursively retrieve all children of bookmarks within this collection, and return a flat liststatic voidinsertBookmark(InternalPdfDocument internalPdfDocument, int pageIndex, String text, String parentText, String previousText) Insert a new bookmarkstatic voidinsertBookmarkAsFirstChild(InternalPdfDocument internalPdfDocument, int pageIndex, String text, String parentText) Insert a new bookmarkstatic voidinsertBookmarkAtStart(InternalPdfDocument internalPdfDocument, int pageIndex, String text) Insert a new bookmark
- 
Constructor Details- 
Bookmark_Apipublic Bookmark_Api()
 
- 
- 
Method Details- 
getBookmarksRetrieve 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
 
- 
insertBookmarkAsFirstChildpublic static void insertBookmarkAsFirstChild(InternalPdfDocument internalPdfDocument, int pageIndex, String text, String parentText) Insert a new bookmark- Parameters:
- internalPdfDocument- the internal pdf document
- pageIndex- The zero based page number to link to. E.g. Page 1 has a PageIndex of 0
- text- The display text for the link.
- parentText- parent bookmark text. set to null for insert at the top
 
- 
insertBookmarkpublic static void insertBookmark(InternalPdfDocument internalPdfDocument, int pageIndex, String text, String parentText, String previousText) Insert a new bookmark- Parameters:
- internalPdfDocument- the internal pdf document
- pageIndex- The zero based page number to link to. E.g. Page 1 has a PageIndex of 0
- text- The display text for the link.
- parentText- parent bookmark text. set to null for insert at the top
- previousText- previous bookmark text. set to null for insert at first of its siblings
 
- 
insertBookmarkAtStartpublic static void insertBookmarkAtStart(InternalPdfDocument internalPdfDocument, int pageIndex, String text) Insert a new bookmark- Parameters:
- internalPdfDocument- the internal pdf document
- pageIndex- The zero based page number to link to. E.g. Page 1 has a PageIndex of 0
- text- The display text for the link.
 
 
-