react pdf add to existing pdf code example
Example: react pdf add to existing pdf
<Grid centered columns={2}>
<Grid.Column textAlign="center" onClick={this.nextPage}>
<Document file='/Sample.pdf' onLoadSuccess={this.onDocumentLoadSuccess} noData={<h4>Please select a file</h4>}>
<Page pageNumber={pageNumber} >
</Page>
</Document>
{this.state.file ? <p>Page {pageNumber} of {numPages}</p> : null}
</Grid.Column>
</Grid>
</Container>
);