问题描述
我需要在没有Adobe Reader的情况下将pdf文件打开到浏览器中.是否有任何带有PHP的API均可将PDF文件打开到浏览器中.
I need to open pdf file into browser without Adobe Reader. Is there any API with php which open PDF files into browser.
致谢
推荐答案
您可以使用 SWFTools 转换PDF到Flash.但是SWFTools的默认外观一点都不好看,因此您可以作为查看器查看 Flexpaper .如果您要制作自己的皮肤,那么阅读以下内容可能会很有用: SWFTools(pdf2swf)使用Flex
You can use SWFTools to convert PDFs to Flash. But SWFTools default skins are not looking good at all, so you can check Flexpaper as a viewer.In case you are going to make your own skin, then could be useful to read: SWFTools (pdf2swf) to properly work with Flex
另一种解决方案是pdf.js(正如昆汀指出的那样),但是对于具有复杂结构(例如,复杂渐变)的PDF,此脚本无法使用(当时,当我寻找时).
Another solution is pdf.js (as Quentin point out), but AFAIR this script was not usable(back then, when I looked for) for PDFs with complex structures (complex gradients for example).
如果您需要将文档发布为私人",则应将服务视为 Issuu ,否则您将需要保护下载文件.
If you need to publish documents as "private" you should look at services as Issuu or you will have to protect files from downloading.
这篇关于在没有Adobe Reader的情况下将pdf文件显示到浏览器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!