适用于我的网络的 PDF 查看器 - PHP
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4894554/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
PDF Viewer for my web - PHP
提问by hjaffer2001
I am searching for an opensource pdf viewer for my web-site
我正在为我的网站寻找开源 pdf 查看器
Searched for months and months. Is there any open source to view pdf in my web (without Flash).
搜索了几个月和几个月。是否有任何开源可以在我的网络中查看 pdf(没有 Flash)。
On the other hand, the documents should be secure.
另一方面,文件应该是安全的。
I have done a synopsis with the following urls (but no use)
我已经用以下网址做了概要(但没有用)
- http://embedit.in/
- http://www.vuzit.com/
- http://www.ajaxdocumentviewer.com/
- http://flexpaper.devaldi.com
- http://www.icepdf.org/
- https://docs.google.com/viewer
- http://www.snowbound.com/
- http://www.mygazines.com
- http://www.issuu.com/business
- http://www.box.net
- http://viewer.zoho.com/
- http://embedit.in/
- http://www.vuzit.com/
- http://www.ajaxdocumentviewer.com/
- http://flexpaper.devaldi.com
- http://www.icepdf.org/
- https://docs.google.com/viewer
- http://www.snowbound.com/
- http://www.mygazines.com
- http://www.issuu.com/business
- http://www.box.net
- http://viewer.zoho.com/
I want both download and print option for my pdf viewer.
我想要我的 pdf 查看器的下载和打印选项。
回答by Ravikiran
Maybe its already answered @ How to make PDF viewer in PHP
也许它已经回答了@How to make PDF viewer in PHP
Additionally, you may also want to check PDF Functions - php.net
此外,您可能还想查看PDF 函数 - php.net
回答by T.Todua
1) Download zip file from:
https://github.com/mozilla/pdf.js/archive/master.zipand unzip to http://yourhost/myfolder
(or wherever you have hosted it)..
2) After extraction, in myfolder/webfolder, open viewer.jsand change DEFAULT_URLto your example.pdfpath.
3) open in your browser http://yourhost/myfolder/web/viewer.html
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