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 Summary
Constructors Constructor Description Bookmark_Api()
-
Method Summary
All 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 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
-
-
-
Method Detail
-
getBookmarks
public 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
-
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.
-
-