推荐将PDF嵌入到HTML中的方法? [英] Recommended way to embed PDF in HTML?
问题描述
将HTML嵌入到HTML中的推荐方法是什么?
- iFrame?
- 对象?
- 嵌入?
Adobe对此有何评论?
在我的情况下,PDF即时生成,因此无法在刷新之前将其上传到第三方解决方案。
可能最好的方法是使用 PDF。 JS 库。这是一个纯粹的 HTML5 / 适用于PDF文档的JavaScript 渲染器,无需任何第三方插件。
在线演示:
http://mozilla.github.com/pdf.js/web/viewer.html
GitHub:
https:/ /github.com/mozilla/pdf.js
What is the recommended way to embed PDF in HTML?
- iFrame?
- Object?
- Embed?
What does Adobe say itself about it?
In my case, the PDF is generated on the fly, so it can't be uploaded to a third-party solution prior to flushing it.
Probably the best approach is to use the PDF.JS library. It's a pure HTML5/JavaScript renderer for PDF documents without any third-party plugins.
Online demo: http://mozilla.github.com/pdf.js/web/viewer.html
GitHub: https://github.com/mozilla/pdf.js
这篇关于推荐将PDF嵌入到HTML中的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!