DocumentViewer.loadDocument() attaching iFrames

PDFTron Web

Product Version:

Please give a brief summary of your issue:
I am running PDFTron with my custom UI. When I load a pdf with documentViewer.loadDocument() an iFrame gets appended to my body:

Deleting the iFrame does not impact the functionality.

Please describe your issue and provide steps to reproduce it:
Set up a like described here:

and load a document.

Please provide a link to a minimal sample where the issue is reproducible:

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:


Hello jherbe,

Each time you call loadDocument() does it append an iFrame? or are you curious why the iFrame is being added?

Tyler Gordon
Web Development Support Engineer