1.0.0 • Published 4 months ago
react-highlight-pdf2 v1.0.0
WARNING: This package is under development and is not ready for production use.
react-highlight-pdf
This package provides a React component which can render PDF files and add annotations to them.
Getting started
Compatibility
Browser support
react-highlight-pdf supports all modern browsers. It is tested with the latest versions of Chrome, Edge, Safari, Firefox, and Opera.
The following browsers are supported out of the box in react-highlight-pdf:
- Chrome ≥92
- Edge ≥92
- Safari ≥15.4
- Firefox ≥90
React
To use the latest version of react-highlight-pdf, your project needs to use React 16.8 or later.
Installation
Add react-highlight-pdf to your project by executing npm install react-highlight-pdf
or yarn add react-highlight-pdf
.
Usage
Here's an example of basic usage:
import { ReactHighlightPdf } from "react-highlight-pdf";
const MyDocument = () => <ReactHighlightPdf file="sample.pdf" />;
User guide
Document
Loads a document passed using file
prop.
License
The MIT License.
Author
1.0.0
4 months ago