CenterForOpenScience / modular-file-renderer

A Python package for rendering files to HTML via an embeddable iframe
http://modular-file-renderer.readthedocs.io/en/latest/
Apache License 2.0
44 stars 67 forks source link

[FIX] PDF printing,add allow-modals attribute in iframe #359

Open ebijun opened 4 years ago

ebijun commented 4 years ago

In previewing PDF document, OSF.io use PDF.js and pdf.worker.min.js,to Preview/Print file. and Print button always failed with "iframe sandbox parameter should contain "allow-modals" parameter."

Because In OSF,pdf.worker.min.js called in iframe tag,