Class Bookmark_Api
- java.lang.Object
- 
- com.ironsoftware.ironpdf.internal.staticapi.Bookmark_Api
 
- 
 public final class Bookmark_Api extends Object The type Bookmark api.
- 
- 
Constructor SummaryConstructors Constructor Description Bookmark_Api()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Bookmark>getBookmarks(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
 
- 
- 
- 
Method Detail- 
getBookmarkspublic static List<Bookmark> getBookmarks(InternalPdfDocument internalPdfDocument) 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
 
 - 
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.
 
 
- 
 
-