web 显示pdf 文件的方法

对于是IE的我们可以使用activex 技术 ,或者使用一些显示pdf 文件的js 插件

使用activex 的方法为:

<center>
<OBJECT ID="pdf1" WIDTH=100% HEIGHT="900" CLASSID="CLSID:CA8A9780-280D-11CF-A24D-444553540000">
<param name="SRC" value="resin-4.0-admin.pdf">
</OBJECT>
</center>

客户端必须安装 pdf reader 的

使用js 脚本 但是会有一些限制,因为一些js 脚本可能还在低版本的IE 上或者其他的浏览器上显示会有问题。

firefox 中显示的方法比较简单 ,你直接使用连接即可 ,firefox 浏览器会自动打开,它使用的就是js 脚本。

pdf.js 脚本。

简单的介绍如下:

PDF Viewer (aka pdf.js) is a new revolutionary extension using web standard technologies that allows you to display within Firefox almost all PDF files found on the web without a plugin. Also available for Google Chrome and Opera at https://addons.opera.com/en/extensions/details/pdf-viewer/?display=en

posted on 2013-12-30 11:14  荣锋亮  阅读(556)  评论(0编辑  收藏  举报

导航