# react-pdf-viewer/react-pdf-viewer

A React component to view a PDF document

Repository: https://github.com/react-pdf-viewer/react-pdf-viewer
Canonical: https://ross.abutalabs.com/products/react-pdf-viewer
Homepage: https://react-pdf-viewer.dev
Language: TypeScript
License: NOASSERTION
License Family: other
Topics: typescript, react, react-hooks, pdf-viewer, pdfjs
Archived: true
Last push: 2024-08-19T18:31:17+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2413, "days_push": 744, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2608, forks 301 (observed 2026-08-28T04:07:04.188007+00:00)

## What it is
A React component library for viewing PDF documents in the browser, built with TypeScript and React hooks on top of PDF.js. It offers a plugin architecture for layouts, search, thumbnails, and other viewer features.

## Use cases
- display pdf documents in a react app
- embed a pdf viewer with toolbar and thumbnails
- view password protected pdfs in the browser
- add text search to a pdf viewer
- render pdfs with server-side rendering
- customize pdf viewer toolbar and theme
- print and download pdfs from a web app

## When to choose
- you need a full-featured, customizable PDF viewer in a React application
- you want plugin-based features like search, thumbnails, and table of contents
- you need SSR support, theming, dark mode, or accessibility in a viewer

## When to avoid
- you need a free open-source license — commercial use requires purchasing a license
- you are not using React
- you only need to extract or manipulate PDF data rather than display it

## Facets
- artifact type: library
- maturity: active
- function: pdf-viewer, ui-components, frontend-framework
- domain: pdf, frontend, web-development, files
- platform: cross-platform
- tags: react, pdfjs, typescript, react-hooks, plugin-system, document-viewer, web-server, nodejs

## Member repositories
- react-pdf-viewer/react-pdf-viewer (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:04.188007+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:20:55.676102+00:00, confidence not recorded.
  - readme: https://github.com/react-pdf-viewer/react-pdf-viewer (fetched 2026-08-28T04:07:04.188007+00:00, sha d19f6fde043e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
