简体   繁体   English

如何在PHP中制作PDF查看器

[英]How to make PDF viewer in PHP

I want to open PDF file with PHP. 我想用PHP打开PDF文件。 Don't want to use Flash. 不想使用Flash。 Like google doc viewer. 像谷歌文档查看器。 I just want to open PDF file. 我只想打开PDF文件。 Can I do with PHP ? 我可以使用PHP吗?

PHP cannot natively open and display a PDF file to the browser. PHP无法本机打开并在浏览器中显示PDF文件。 In most cases you want to just send the file to the browser and allow the Adobe Reader to open and display the file. 在大多数情况下,您只想将文件发送到浏览器并允许Adobe Reader打开并显示文件。 However, if you are looking to pull data out of the PDF itself, then the PDF function built-into PHP may be of some help. 但是,如果您希望从PDF本身提取数据,则PHP内置的PDF函数可能会有所帮助。

http://php.net/manual/en/book.pdf.php http://php.net/manual/zh/book.pdf.php

You can't BUT You can make one with PHP 您不能可以用PHP制作一个

making a previews of each page like google reader 对每个页面进行预览,例如Google Reader

this links may help you How do I convert a PDF document to a preview image in PHP? 该链接可能对您帮助。 如何在PHP中将PDF文档转换为预览图像?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM