react-pdf-highlighter
TypeScript icon, indicating that this package has built-in type declarations

8.0.0-rc.0 • Public • Published

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

Package Sidebar

Install

npm i react-pdf-highlighter

Weekly Downloads

13,902

Version

8.0.0-rc.0

License

MIT

Unpacked Size

440 kB

Total Files

47

Last publish

Collaborators

  • agentcooper