PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Bookmarks are user-created markers, which is used to identify and quickly navigate to specific locations in a document. Unlike outlines, bookmarks are manually added by users, typically reflecting their personalized interests in the document content.
Bookmarks offer a user-customized navigation method, enabling users to create personalized markers within a document. Users can swiftly navigate to bookmarked locations without the need to browse through the entire document.
This example shows how to get the bookmarks list:
var bookmarks = document?.bookmarks()NSArray *bookmarks = document.bookmarks;The steps for adding a new bookmark are as follows:
This example shows how to add a new bookmark:
document?.addBookmark("new bookmark", forPageIndex:0)[document addBookmark:@"new bookmark" forPageIndex:0];Delete the bookmark for a specified page number.
This example shows how to delete a bookmark:
// Delete the bookmark for the first page.
document?.removeBookmark(forPageIndex:0)// Delete the bookmark for the first page.
[document removeBookmarkForPageIndex:0];