Package Exports
- offer-pdf-highlighter
- offer-pdf-highlighter/dist/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (offer-pdf-highlighter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 startInstall
npm install react-pdf-highlighterHow to use
See ./example/src/App.tsx for the React component API example.