Load PDF without iframe

Which product are you using?
PDF.js Express Version

Detailed description of issue
I’m looking for a way to use PDF JS Express without embedding an iframe on the page. Our product allows the user to right-click on the page with our own custom actions added via a SDK script, and the iframe embed blocks the user from interacting in that way. I noticed that following the iframe src path renders the pdf directly on the page without the iframe, so I assume this is possible.

Is there a recommended way to use this component without creating an iframe?

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hello Mike,

Unfortunately the iframe is required at the moment, you can read more about it here: What is PDF.js Express? | Documentation

We are planning on removing the iframe requirement from WebViewer later this year.

Best regards,
Tyler Gordon
Web Development Support Engineer
PDFTron