Set of React components for PDF annotation
npm install react-pdf-highlighterSet of React components for PDF annotation.
Features:
- Built on top of PDF.js
- Text and image highlights
- Popover text for highlights
- Scroll to highlights
The bundled CSS include the CSS for pdfjs.
``tsx`
import "react-pdf-highlighter/dist/style.css";
See demo https://agentcooper.github.io/react-pdf-highlighter/.
To run the example app locally:
`bash`
npm install
npm start
`bash`
npm install react-pdf-highlighter
See ./example/src/App.tsx` for the React component API example.