PDFObject
PDFObject 介绍
PDFObject一个在 html 文档中动态引入 PDF 文件的轻量级 JavaScript 工具库 。
只需要引用pdfobject.js,不需要额外的库
<script type="text/JavaScript" src="js/pdfobject.js"></script>
js:
<script type="text/JavaScript">
window.onload = function (){
var myPDF = new PDFObject({ url: "sample.pdf" }).embed();
};
</script>
网站地址:http://pipwerks.mit-license.org/
GitHub:https://github.com/pipwerks/PDFObject
网站描述:在线浏览pdf文件