import sample from './response.pdf'
React-pdf Component.
<Document
file={sample}
onLoadSuccess={this.onDocumentLoad} >
<Page pageNumber={pageNumber} />
</Document>
I am using manual PDF in the document component. So its working fine Is there any way to show Html file in file key. example: I have a html like this
sample1=Html code etc ...
<Document
file={sample1}
onLoadSuccess={this.onDocumentLoad} >
<Page pageNumber={pageNumber} />
</Document>
This I tried, Can anyone guide be how to use this.