0.0.1-alpha-4-1.52 • Published 4 years ago

custom-react-pdf-highlight v0.0.1-alpha-4-1.52

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

react-pdf-highlighter

custom-react-pdf-highlighter is a React library that provides annotation experience for PDF documents on web. It is built on top of PDF.js by Mozilla. Text and rectangular highlights are supported. Highlight data format is independent of the viewport, making it suitable for saving on the server.

Install

npm i npm i nwb@0.21.0 npm i flow-copy-source@1.1.0

npm run build npm run copy-files

Prior art

react-pdf and react-pdfjs only provide React wrappers for PDF.js and do not have built-in annotation functionality.

pdfjs-annotate does not provide text highlights out of the box.

PDF.js provides only viewer:

PDF.js is mainly written for reading PDF files, not editing them. Because of that we don't yet support adding any kind of annotations. We do however support rendering a number of annotation types for viewing.

See also:

I'm trying the demo with my PDF and it is not loading!

Please check the CORS headers on your url. It is required for the cross-domain request.

Compatibility

Works in Google Chrome, Safari 10+, Firefox 52+. Not tested in Internet Explorer.

0.0.1-alpha-4d

4 years ago

0.0.1-alpha-4c

4 years ago

0.0.1-alpha-4b

4 years ago

0.0.1-alpha-4a

4 years ago

0.0.1-alpha-4

4 years ago

0.0.1-alpha3c

4 years ago

0.0.1-alpha3

4 years ago

0.0.1-alpha3a

4 years ago

0.0.1-alpha3b

4 years ago

0.0.1-alpha2

4 years ago

0.0.1-alpha1

4 years ago

0.0.1

4 years ago