SAV Design/PDF Pages

PDF Pages

Renders every page of a PDF to canvases with pdf.js, fit-to-width with zoom and device-pixel-ratio aware; lazy-loads the pdf.js module and worker.

App patternsregistry:component

Install

npx shadcn@latest add @sav/pdf-pages

Needs "@sav": "https://design.sasv.ch/r/{name}.json" under registries in components.json. Direct URL: /r/pdf-pages.json.

Preview

Loading…

Files

  • registry/sav/components/pdf-pages.tsx→ @components/pdf-pages.tsx

Dependencies

Registry items

—

npm packages

pdfjs-dist