All projects

sveltekit-pdf-renderer

A library for generating PDFs from Svelte components in SvelteKit server routes.

Capabilities

  • Pass typed props to the component being rendered.
  • Configure fonts, page size, and backgrounds.
  • Set component defaults and override them per request.
  • Customize response metadata and browser launch options.

Built for SvelteKit

The renderer loads application assets through SvelteKit’s request handling and waits for fonts before generating a PDF. It reuses a browser across requests while keeping each render in a separate browser context.

Built with

  • TypeScript
  • SvelteKit
  • Svelte 5
  • Puppeteer
  • Chromium
  • Server-Side Rendering
  • PDF Generation
  • Type-Safe API Design