Saiku React PDF.js
A React component to wrap PDF.js.
Requirements
- Node.js v6.0.0 or higher
- NPM (v3.0.0+ recommended) (this comes with Node.js)
Installation
Using NPM:
npm install --save saiku-react-pdfjs
Using Yarn:
yarn add saiku-react-pdfjs
Usage
Here's an example of basic usage:
;; { superprops; thisonDocumentComplete = thisonDocumentComplete; thisonPageComplete = thisonPageComplete; } { this; } { this; } { return <div> <SaikuPDF file="someFile.pdf" page=2 scale=1 onDocumentComplete=thisonDocumentComplete onPageComplete=thisonPageComplete /> <p>Page thisstatecurrentPage of thisstatenumberOfPages</p> </div> ; } ;
Storybook
You can access saiku-react-pdfjs storybook here.
Contributing
If you want to help, please read the Contributing guide.
History
For detailed changelog, see Releases.
Credits
Big thanks to these great repositories:
License
Apache License Version 2 © Meteorite BI