Interactive Demos
Explore all the features of the <pdf-viewer> component
Basic Usage
A simple viewer with default settings. Just set the src attribute.
With Thumbnails
Add show-thumbnails to display a sidebar with page previews.
Continuous Scroll
Set view="continuous" to scroll through all pages.
External Document
A real-world PDF loaded into the viewer with thumbnails enabled.
Dark Mode
Set mode="dark" or let it auto-detect from the page theme.
Restricted Controls
Use no-download and no-print to hide those buttons.
Custom Zoom
Set an initial zoom level with the zoom attribute.
Specific Page + Title
Jump to a specific page on load and display a title in the toolbar.
No Toolbar
Hide the toolbar entirely with show-toolbar="false".
Browse & View
Pick a PDF from your computer to view it right here. You can also drag and drop onto the viewer.
Programmatic Search
Use the search() method or press Ctrl+F to find text within the document.
Event Handling
Listen for events to integrate the viewer into your application.
Related Components
Part of the ProfPowell vanilla web components suite: