Plugin: Bookmark (Outline)
Extracts the document outline and renders it as a side-panel tree.
The Bookmark plugin reads the PDF’s outline (table of contents) and exposes it for side-panel rendering. DocumentViewer ships an OutlinePanel.vue that renders the tree with keyboard navigation.
Enabling flag
features.outline: true
What it does
- Extracts the PDF outline / bookmarks tree on document load
- Renders a hierarchical tree in the side panel
- Click any node to navigate to the target page
- Keyboard nav: arrow keys to walk, Enter to navigate
Okeyboard shortcut to toggle the panel (whenfeatures.keyboardShortcutsis on)
Composable
useBookmark(documentId) from @embedpdf/plugin-bookmark/vue. Returns the outline tree as a reactive array of BookmarkNodes.
Events
None surfaced externally.
Dependencies
- document-manager
- scroll (for
goToPageon click)
Configuration
No featureConfig.
Empty state
If the PDF has no outline (most short documents don’t), the panel renders an empty state message. Many PDFs only carry an outline if explicitly added during authoring.
When you’d touch it directly
To render the outline in a sidebar outside the viewer chrome — useBookmark returns the tree directly.
See also
- Plugin: thumbnail — the other navigation panel
- Features → outline