Copy to clipboard
Targets
listNamedDestinations(doc) lists a document’s named destinations; it falls back to link annotations when pdf.js returns none. Regions also come from the paper analysis: paper.figures[i].rect, paper.flatSections[i].rect, or any quote through the text index.
Options
Effects render in <Viewer.Focus /> inside each page. The built-ins are plain CSS on [data-pdf-focus][data-highlight]; for your own, render through its child snippet ({ props, highlight, duration }).
History and reading position
navigate()pushes the current place;back()/forward()(Alt + ← / →),history.canGoBackand<Viewer.BackButton />(”← Back to page 2”) use it. Links, citations and outline items navigate this way.viewer.position(e.g.3.42= 42% into page 3) andviewer.restorePosition(3.42)save and restore where the reader was; put it in the URL hash.viewer.readingPoint({ page, y, fraction }) andviewer.viewRangedescribe what is on screen; they drive active sections, progress bars and the minimap.
Prefer
navigate() for jumps the reader will want to undo (citations, figures), and focus() for programmatic positioning.