@meetingmaker/pdfreader
v1.0.6
Published
PDF Reader component using PDF.js library
Downloads
7
Readme
ngager-pdfreader
PDF Reader component using PDF.js library
Install
npm install --save ngager-pdfreader
Example
https://ngager-group.github.io/ngager-pdfreader/
Usage
import React, { Component } from 'react'
import PDF from 'ngager-pdfreader'
class Example extends Component {
render () {
return (
<PDF
popup
src="https://nclong87.github.io/file-example_PDF_500_kB.pdf"
downloadable
onRequestClose={() => this.setState({ open: false })}
onLastPage={() => console.log('onLastPage')}
onPageChanged={(currentPage) => console.log('currentPage', currentPage)}
/>
)
}
}
License
MIT © ngager-group