re-pdf-viewer
re-pdf-viewer
provides a component for rendering PDF documents using PDF.js. Control ZoomIn and ZoomOut and dynamically update page numbers on scroll
Usage
Install with npm install re-pdf-viewer --save
Use in your app
;; const MultiPagePdf = { const scale setScale = ; const page setPage = ; const pages setPages = ; const zoomIn = { ; }; const zoomOut = { ; }; return <div> <button onClick=zoomIn>ZOOM IN</button> <button onClick=zoomOut>ZOOM OUT</button> <div> Page - page / Pages - pages" " </div> <Pdf file=file scale=scale setPages= setPage= loading=<div>Loading...</div> /> </div> ;};
Credit
This project is a fork of react-pdf-js which is a fork of react-pdfjs which itself was a port of react-pdf, so thank you to the original authors.