Skip to content
Projects

agentcooper/react-pdf-highlighter

View on GitHub

agentcooper/react-pdf-highlighter has 1,414 GitHub stars and 522 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 05:38 UTC. Last push 2024-11-22.

How these counts are measured

Set of React components for PDF annotation

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

☕️ Buy me a coffee

Node CI

react-pdf-highlighter

Set of React components for PDF annotation.

Features:

  • Built on top of PDF.js
  • Text and image highlights
  • Popover text for highlights
  • Scroll to highlights

Importing CSS

The bundled CSS include the CSS for pdfjs.

import "react-pdf-highlighter/dist/style.css";

Example

See demo https://agentcooper.github.io/react-pdf-highlighter/.

To run the example app locally:

npm install
npm start

Install

npm install react-pdf-highlighter

How to use

See ./example/src/App.tsx for the React component API example.

Explore related projects