react.pdf.stream
v0.0.0-beta-14
Published
show your pdf file in web app. Supprot static file url and stream data
Downloads
89
Maintainers
Readme
English | 简体中文
A react component to show pdf with stream data
Step forward everyday and never stop, your hard work will never be wasted and always have something in return.
✨Features
- support view pdf with stream data
- same ui with default chrome pdf-viewer plugins
📦 Install
npm install react.pdf.stream --save
🔨 Usage
import PDFView from 'react.pdf.stream';
ReactDOM.render(<PDFView filePath="required" />, mountNode);
Props
params
you can set some default props in this, like httpHeaders
...
filePath
file request url
fileName
file name
🤝 Contributing
Porcess
TODO
- for now the file is show in type of canvas and cannot be modified, such as adding annotion; so next step is to transform in different situation to show pdf for editing pdf and highlight someting.
- Browser Compatibility
- read pdf.js and write a new one
- 。。。