A simple, lightweight PDF viewer component for Svelte 5 with TypeScript support. Built on top of PDF.js
<script lang="ts">
import { PDFViewer } from 'pdf-viewer-svelte';
</script>
<PDFViewer url="path/to/your/document.pdf" />- Svelte 5.x
- pdfjs-dist is included as a dependency
To run the example
pnpm install
pnpm run exampleMIT
Contributions are welcome! Please feel free to submit a PR.
