html页面读取PDF小案例

html页面读取PDF小案例

html页面

引用<script src="js/pdfobject.js" type="text/javascript" charset="utf-8"></script>

<div id="pdf" style="height: 400px;width: 600px;"/>

js添加

window.onload = function (){ var success = new PDFObject({ url: pdf文件路径 }).embed("pdf"); };

点击下载pdfobject.js

not applicable: Specified browser is not PRoduced for this Operating system.no Adobe Reader plugin: Adobe Reader unavailable for this browser/OS combination.

详情:http://www.pdfobject.com