JSPM

react-perfect-pdf-viewer

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q35853F
  • License MIT

A lightweight React component for viewing PDFs with smooth zoom in/out and navigation.

Package Exports

  • react-perfect-pdf-viewer
  • react-perfect-pdf-viewer/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-perfect-pdf-viewer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

📄 React Perfect PDF Viewer

A lightweight and customizable React component for viewing PDFs with smooth zoom and navigation controls.

🚀 Installation

npm install react-perfect-pdf-viewer

📦 Usage

import React from "react"; import PdfViewer from "react-perfect-pdf-viewer";

function App() { return ( <div style={{ width: "100%", height: "100vh" }}> ); }

export default App;

Prop Type Default Description
file string null Path or URL of the PDF file.
scale number 1.0 Initial zoom level.
onLoad func null Callback when the PDF loads.
onError func null Callback if PDF fails to load.

✨ Features

✅ Smooth zoom in/out

✅ Page navigation (Next/Previous)

✅ Lightweight & fast

✅ Works with local and remote PDFs

📜 License

MIT © 2025 Muhammed Fazil P M