Pdfslick screenshot

Pdfslick

Author Avatar Theme by Pdfslick
Updated: 22 May 2025
709 Stars

View and Interact with PDFs in React, SolidJS, Svelte and JavaScript apps

Categories

Overview:

PDFSlick is a library that allows for the viewing and interaction with PDF documents within React, SolidJS, Svelte, and JavaScript applications. It leverages Mozilla’s PDF.js and utilizes Zustand for a reactive store for the loaded documents, making it easier to integrate PDF functionality in these frameworks.

Features:

  • Cross-Framework Compatibility: Works seamlessly with React, SolidJS, Svelte, and Vanilla JavaScript apps.
  • PDF Viewer Component: Provides a PDFSlickViewer component for displaying PDF documents.
  • Reactive Store: Utilizes Zustand to offer a reactive store for managing loaded documents.
  • Easy Integration: Offers hooks like usePDFSlick() for easy integration in components.
  • Customizable Options: Allows for customization through options objects when loading PDF documents.

Installation:

To install PDFSlick for React:

npm install @pdfslick/react

To install PDFSlick for SolidJS:

npm install @pdfslick/solid

To install PDFSlick for Svelte:

npm install @pdfslick/svelte

Summary:

PDFSlick is a versatile library that simplifies the integration of PDF functionality in React, SolidJS, Svelte, and Vanilla JavaScript applications. By providing components like PDFSlickViewer and a reactive store, it offers an easier way to work with PDF documents within these popular frameworks.