mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 14:37:21 +01:00
working prototype
This commit is contained in:
@@ -3,11 +3,15 @@ import PDF from 'react-pdf';
|
||||
|
||||
class Preview extends Component {
|
||||
render(props) {
|
||||
if (!props.pdfUrl) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return (
|
||||
<PDF
|
||||
content={props.pdf}
|
||||
onDocumentComplete={this._onDocumentComplete}
|
||||
onPageComplete={this._onPageComplete}
|
||||
file={props.pdfUrl}
|
||||
onDocumentComplete={this._onDocumentComplete.bind(this)}
|
||||
onPageComplete={this._onPageComplete.bind(this)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user