Svelte Pdf screenshot

Svelte Pdf

Author Avatar Theme by Vinodnimbalkar
Updated: 1 Apr 2025
218 Stars

svelte-pdf provides a component for rendering PDF documents using PDF.js

Categories

Overview:

Svelte PDF is a simple PDF viewer component made with the Svelte framework. It provides controls for page navigation, zooming, rotation, printing, and automatic flipping of pages. The component also includes a demo page with source code. It can be installed through npm and used with local paths, URLs, or base64 encoded strings. The component has various props that can be customized to suit different requirements. Svelte PDF is compatible with Sapper with SSR enabled, and contributions to the project are welcome. The component is licensed under MIT.

Features:

  • Page navigation
  • Zooming
  • Rotation
  • Printing
  • Auto flipping of pages

Installation:

To install Svelte PDF, follow these steps:

  1. Clone the Svelte PDF repository.
  2. Install the dependencies.
  3. Run the application at http://localhost:5000.

Summary:

Svelte PDF is a lightweight PDF viewer component with various controls and customization options. It can be easily installed and used in Svelte projects. The component is also compatible with Sapper with SSR enabled. Contributions to the project are encouraged.