diff --git a/example/PDFExample.js b/example/PDFExample.js index daf57a04..54d7fb88 100644 --- a/example/PDFExample.js +++ b/example/PDFExample.js @@ -128,9 +128,10 @@ export default class PDFExample extends React.Component { page={this.state.page} scale={this.state.scale} horizontal={this.state.horizontal} - onLoadComplete={(numberOfPages, filePath) => { + onLoadComplete={(numberOfPages, filePath,{width,height},tableContents) => { this.state.numberOfPages = numberOfPages; //do not use setState, it will cause re-render console.log(`total page count: ${numberOfPages}`); + console.log(tableContents); }} onPageChanged={(page, numberOfPages) => { this.state.page = page; //do not use setState, it will cause re-render