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 a navigation tool in PDF documents that allow users to quickly jump to specific pages or locations in the document. Bookmarks are typically displayed in the sidebar or panel of a document reader, and users can quickly access relevant content by clicking on bookmarks. Bookmarks can be added manually or automatically generated based on the document structure.
List<CPDFBookmark> bookmarks = await document.getBookmarks(); bool result = await document.addBookmark(title: 'My Bookmark', pageIndex: 0);List<CPDFBookmark> bookmarks = await document.getBookmarks();
if (bookmarks.isNotEmpty) {
CPDFBookmark bookmark = bookmarks.first;
bookmark.setTitle('Updated Title');
bool result = await document.updateBookmark(bookmark);
}final pageIndex = 0;
bool result = await document.removeBookmark(pageIndex);final pageIndex = 0;
bool exists = await document.hasBookmark(pageIndex);