Search results

PdfNamedDestination API in JavaScript PDF API control

Represents a named destination in a PDF document.

// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data, password);
// Get the bookmarks
let bookmarks: PdfBookmarkBase = document.bookmarks;
// Gets the bookmark at the specified index
let bookmark: PdfBookmark = bookmarks.at(0) as PdfBookmark;
// Gets the named destination
let namedDestination: PdfNamedDestination = bookmark.namedDestination;
// Destroy the document
document.destroy();

Properties

destination PdfDestination

Gets the destination.

title string

Gets the title.