Appearance
Overview
The pdf-bookmarks
component displays the document outline as a tree of bookmark items.
The document
property identifies the pdf-document
that provides the bookmarks, if any. The pagesviewer
property identifies the pdf-pages
component that should respond when the user selects a bookmark.
Usage
html
<!-- Define the PDF document -->
<pdf-document name="d" />
<!-- Define the PDF pages viewer -->
<pdf-pages document="d" name="p" pageMode="multi" />
<!-- Define the PDF bookmarks component -->
<pdf-bookmarks document="d" pagesviewer="p" />
In this example, a pdf-document
named "d" is defined. A pdf-pages
viewer named "p" is associated with this document. The pdf-bookmarks
component is also associated with the same document and viewer, allowing the user to navigate the document using bookmarks.
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
document | document | Identifies the PdfDocument component by its 'name' property. | string | undefined | 'default' |
pagesviewer | pagesviewer | Identifies the PdfPages component by its 'name' property. | string | undefined | 'default' |
Built with StencilJS