public final class Bookmark_Api extends Object
| Constructor and Description |
|---|
Bookmark_Api() |
| Modifier and Type | Method and 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 list
|
static void |
insertBookmark(InternalPdfDocument internalPdfDocument,
int pageIndex,
String text,
String parentText,
String previousText)
Insert a new bookmark
|
static void |
insertBookmarkAsFirstChild(InternalPdfDocument internalPdfDocument,
int pageIndex,
String text,
String parentText)
Insert a new bookmark
|
static void |
insertBookmarkAtStart(InternalPdfDocument internalPdfDocument,
int pageIndex,
String text)
Insert a new bookmark
|
public static List<Bookmark> getBookmarks(InternalPdfDocument internalPdfDocument)
internalPdfDocument - the internal pdf documentpublic static void insertBookmarkAsFirstChild(InternalPdfDocument internalPdfDocument, int pageIndex, String text, String parentText)
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 toppublic static void insertBookmark(InternalPdfDocument internalPdfDocument, int pageIndex, String text, String parentText, String previousText)
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 siblingspublic static void insertBookmarkAtStart(InternalPdfDocument internalPdfDocument, int pageIndex, String text)
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.Copyright © 2022–2023 Iron Software. All rights reserved.