Skip to main content
svelte-pdf-mini

Svelte 5 · pdf.js 6 · headless

PDF viewer and research-paper reader components for Svelte.

Build anything from a twenty-line viewer to a full reader with highlights, side notes, citation cards and tables of contents — with compound, unstyled parts you compose and style your way.

Get started

Features

  • A fast viewer

    Virtualised pages, a cancellable render scheduler, eased zoom that stays centred, one to four pages per row and pinch-zoom on touch.

  • Annotations that survive

    Highlights, boxes, notes, ink and side notes — exported as standard PDF annotations and read back exactly.

  • Research-paper aids

    Citations with hover cards, figure previews, references and five table-of-contents views, from the PDF alone.

  • Find and select

    A shared text index: search ignoring accents and hyphenation, clean copy, quotes mapped to PDF geometry.

  • Page themes

    A calm paper tint by day and a hue-preserving recolour at night — plus invert, smart invert and your own.

  • Headless & composable

    Compound parts, child snippets, bindable state and data attributes — compose with bits-ui and melt-ui.

Quick start Build a reader step by step.Components Every part with its generated API.Examples Complete apps, with source.