【发布时间】:2018-01-24 08:31:14
【问题描述】:
我尝试过使用iframe:
<iframe src="http://prawnpdf.org/manual.pdf" sandbox="allow-same-origin" style="width: 100%; height: 100%;">
但收到此警告:
Resource interpreted as Document but transferred with MIME type application/pdf: "http://prawnpdf.org/manual.pdf".
是否有其他选项可以显示 PDF 文件?
【问题讨论】:
标签: javascript html pdf iframe