svelte-pdf
- A Svelte component for PDF viewing with interactive controls
- Key features:
- Page navigation
- Zoom functionality
- Rotation controls
- Print capability
- AutoFlip page feature
- External link handling
Target Audience: Svelte developers needing PDF viewing capabilities in their applications
Supported Input Types:
- Local file paths
- Remote URLs
- Base64 encoded strings
Key Props:
url
/data
: PDF sourcescale
: Zoom levelpageNum
: Starting pageshowButtons
: Customizable control buttonsonProgress
: Loading progress callbackexternalLinksTarget
: Controls link opening behavior
Framework Support: Primarily for Svelte, with special notes for Sapper/SSR compatibility
Demo: View online demo
License: MIT licensed
Contribution: Open to issues and pull requests
pdfpdf-viewerpdf-viewer-componentsveltejavascriptpdfjs-distpdfjs
Featured Stories
No featured articles here. Navigate to an article, then pick the Feature on menu button