安装/配置
在线手册:中文 英文
PHP手册

安装

» PECL 扩展未与 PHP 捆绑。 安装此 PECL 扩展相关的信息可在手册中标题为 PECL 扩展的安装 章节中找到。另外的信息,如新的发行版本、下载、源文件、 Additional information such as new releases,维护人员信息及变更日志等,都在此处: » http://pecl.php.net/package/pdflib.

To get these functions to work in PHP < 4.3.9, you have to compile PHP with --with-pdflib[=DIR] . DIR is the PDFlib base install directory, defaults to /usr/local.


安装/配置
在线手册:中文 英文
PHP手册
PHP手册 - N: 安装

用户评论:

Jean-Charles Papin (17-Jun-2011 04:07)

Precisions for step 2:

- aptitude install php-pear
- peardev install pecl/pdflib

Igor Moiseev (02-Dec-2009 11:21)

Brief installation notes. In the spite of the commercialization of libpdf library this is the way to use it in the lite mode.
System: Ubuntu 8.04 + php5.2

Step 1: PDFlib http://www.pdflib.com/
   download PDFlib-Lite: http://www.pdflib.com/download/pdflib-family/pdflib-lite-7/
   extract: tar -xzvf PDFlib-Lite-X.X.XpX.tar.gz
   compile: cd PDFlib-Lite-X.X.XpX && ./configure && make && make install

Step 2: Pecl for PDFlib http://pecl.php.net/package/pdflib
   install:
      install dependences: phpize (php5-dev package)
      pecl install pdflib
         path to pdflib installation? :/usr/local

Step 3: php.ini
   extension=pdf.so

Step 4:
   /etc/init.d/apache2 reload

That's it.

[Edited by RQuadling 2010/07/13 - Updated PDFlibe-Lite URL]
[Edit by danbrown AT php DOT net: Contains a typofix by "Anonymous" on 11-AUG-2010.]