react-pdf-highlighter

Set of React components for PDF annotation
GitHub
1.07k
Created 7 years ago, last commit 2 months ago
27 contributors
228 commits
Stars added on GitHub, month by month
11
12
1
2
3
4
5
6
7
8
9
10
2023
2024
Stars added on GitHub, per day, on average
Yesterday
+1
Last week
+0.9
/day
Last month
+0.7
/day
Last 12 months
+0.6
/day
README

☕️ 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.