working prototype

This commit is contained in:
Thomas Ruoff
2017-02-19 00:23:16 +01:00
parent 09aca6778c
commit 8542c0bf2d
9 changed files with 55087 additions and 33 deletions

View File

@@ -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)}
/>
);
}