The whole viewer in one component: toolbar, thumbnails/outline sidebar,
search, print, and the page surface — the equivalent of the standalone demo.
Reach for this when you want a PDF viewer rather than a PDF viewer toolkit.
When the layout has to be yours, drop down to PdfrxProvider and
arrange PdfToolbar, PdfSidebar and PdfViewerSurface
(and the hooks) as you like — this component is a thin composition of exactly
those pieces.
Needs @pdfrx/react/styles.css imported, and a size: it fills its box.
The whole viewer in one component: toolbar, thumbnails/outline sidebar, search, print, and the page surface — the equivalent of the standalone demo.
Reach for this when you want a PDF viewer rather than a PDF viewer toolkit. When the layout has to be yours, drop down to PdfrxProvider and arrange PdfToolbar, PdfSidebar and PdfViewerSurface (and the hooks) as you like — this component is a thin composition of exactly those pieces.
Needs
@pdfrx/react/styles.cssimported, and a size: it fills its box.