Feature recipes
Basic example
The smallest viewer, with visible pages and selectable text.
This viewer renders a PDF with a canvas and a text layer. Complete installation, create pdf-setup.ts, and put a PDF at public/sample.pdf before using the code.
The fixed height gives Pages a scrollable viewport. Remove TextLayer if you only need the page image. To follow your app theme, pass colorScheme="dark" or "light" to Root; the live example below follows the docs theme.
Continue with a toolbar, error handling, or links and form widgets.
Live example
Loading...