Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
https://github.com/mozilla/pdf.js
https://github.com/mozilla/pdf.js
也许它已经回答了@ 如何在 PHP 中制作 PDF 查看器
另外,您可能还想检查 PDF 函数 - php.net
Maybe its already answered @ How to make PDF viewer in PHP
Additionally, you may also want to check PDF Functions - php.net
1) 从以下位置下载 zip 文件:
https://github.com/mozilla/pdf.js/archive/ master.zip 并解压缩到
http://yourhost/myfolder
(或您托管它的任何地方)..2) 解压后,在 myfolder/web 文件夹中,打开 viewer.js 并将 DEFAULT_URL 更改为您的 example.pdf > 路径。
3)在浏览器中打开
http://yourhost/myfolder/web/viewer.html
1) Download zip file from:
https://github.com/mozilla/pdf.js/archive/master.zip and unzip to
http://yourhost/myfolder
(or wherever you have hosted it)..2) After extraction, in myfolder/web folder, open viewer.js and change DEFAULT_URL to your example.pdf path.
3) open in your browser
http://yourhost/myfolder/web/viewer.html