Menu
Libraries |
Category

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 source
  • scale: Zoom level
  • pageNum: Starting page
  • showButtons: Customizable control buttons
  • onProgress: Loading progress callback
  • externalLinksTarget: 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

Comments