将外部pdf文档加载到div中 [英] loading an external pdf document into div
本文介绍了将外部pdf文档加载到div中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您建议什么是将pdf文档加载到div的最有效方法?
what would you recommend to be the most effective way to load a pdf document into a div?
考虑div的大小(pdf必须缩放以适合div)以及如何显示pdf中的多个页面.
taking into consideration the size of the div (the pdf must scale to fit the div) and how the multiple pages in the pdf would be displayed.
非常感谢!
推荐答案
尝试一下:
<div>
<object data="test.pdf" type="application/pdf" width="300" height="200">
alt : <a href="test.pdf">test.pdf</a>
</object>
</div>
这篇关于将外部pdf文档加载到div中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文