2

I am following this website https://www.pdftron.com/blog/react/how-to-build-a-react-pdf-viewer/ to implement pdf.js using iframe in React

However, in this tutorial, the pdf is a local file in public folder.

   <PDFViewer backend={WebviewerBackend} src='/myPDF.pdf' />

How do I use a third party url as the src? For example, I want to display pdf in this url https://arxiv.org/pdf/0905.3531.pdf

andyzya
  • 39
  • 3
  • 1
    Just follow this answer: https://stackoverflow.com/questions/29963992/how-can-i-pass-a-html-url-with-parameters-in-an-url-parameter – andyzya Jun 26 '21 at 04:05

0 Answers0