简体   繁体   English

如何使用PHP阅读PDF文件

[英]How to Read PDF File using PHP

Can we read PDF using PHP? 我们可以用PHP阅读PDF吗? I want to read single page pdf file by php. 我想通过php阅读单页pdf文件。 If yes please give me some example. 如果是,请举个例子。 Single class file is more appropriate. 单类文件更合适。

There are a variety of techniques to read PDF using PHP. 使用PHP阅读PDF有多种技术。 I won't be using the code in here because it is not appropriate on the premise that we don't know what is your exact use case. 我不会在这里使用代码,因为它不适合我们不知道你的确切用例是什么。 But here are a few links that could help you out. 但是这里有一些可以帮助你的链接。 In no particular order, 没有特别的顺序,

  • FPDF: http://www.fpdf.org/ FPDF:http://www.fpdf.org/
  • FPDF is a PDF reader for PHP. FPDF是PHP的PDF阅读器。 The one below, is more like a converter. 下面的一个更像是转换器。
  • PDF TO HTML http://pdftohtml.sourceforge.net/ PDF格式的HTML http://pdftohtml.sourceforge.net/
  • Free PDF Document Importer: http://www.setasign.com/products/fpdi/about/ 免费PDF文档导入程序:http://www.setasign.com/products/fpdi/about/

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

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