Skip to Content
OpenPreview

Search and navigation

Full-text search across PDF, Word, PowerPoint, Excel, Markdown, code, CSV and JSON, plus thumbnails, outlines and keyboard navigation in OpenPreview.

Ctrl/⌘ + F opens search in every text format. Matches are counted across the whole document, including pages, rows and lines that are not drawn yet, and stepping to one scrolls it into view. Options: match case and whole word.

From code, use the handle or the hook:

const count = viewerRef.current?.search('invoice', { matchCase: false, wholeWord: true });
const results = useDocumentSearch(viewer, query); // { count, current, next, prev, clear }

Thumbnails and outline

The side panel shows page thumbnails for PDF, Word and PowerPoint, and an outline from PDF bookmarks, Word headings, slide titles and Markdown headings. Thumbnails are drawn as they scroll into view, and the outline highlights the entry in view. Open it on load with defaultSidebar ('pages' or 'outline').

Pages

PgUp and PgDn, Home and End move between pages, slides or sheets. onPageChange reports the page in view, and goTo(page) jumps.

On this page