I have a React app where I was displaying PDF with an iframe:
<iframe className={classes.iframe} src={`${pdf.url}#toolbar=0`} title={pdf.navn} height="100%" width="100%" > </iframe>
Since the app will be used on computers with security restrictions, where there is only one browser and it is setup so that it can't open PDF's. I wonder how can I open then PDF, is there any other solution other than browser's native viewer? Do packages like react-pdf provide solution for this or they also use iframe?
1.4m articles
1.4m replys
5 comments
57.0k users