Installation

This » PECL extension is not bundled with PHP. Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: » 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.

Коментарии

Автор:
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.]
2009-12-02 05:21:08
http://php5.kiev.ua/manual/ru/pdf.installation.html
Автор:
Precisions for step 2:

- aptitude install php-pear
- peardev install pecl/pdflib
2011-06-17 11:07:24
http://php5.kiev.ua/manual/ru/pdf.installation.html
because I confused in step 2 I write this comment:
for installing following this instruction step by step:
download PDFlib-Lite-X.X.XpX form first post...

open terminal and type: 

$ cd download folder...
$ sudo tar -xzvf PDFlib-Lite-X.X.XpX.tar.gz 
# cd PDFlib-Lite-X.X.XpX 
# ./configure
# make
# make install 

next:
# apt-get install php5-dev    : online installation if not installed
# apt-get install php-pear    : online installation if not installed
# pecl install pdflib         : online installation
    The ask be: 'path to pdflib installation? : ' enter '/usr/local'

# gedit /etc/php5/apache2/php.ini
    add 'extension=pdf.so in' 1 line

# /etc/init.d/apache2 reload  OR /etc/init.d/apache2 restart

Should work! for test you can write "$p = new PDF_new();" in a file.
2012-09-24 19:21:37
http://php5.kiev.ua/manual/ru/pdf.installation.html
the new constructor for getting a new instance of PDF lib is $p = new PDFlib(); and not $p = new PDF_new(); anymore.
2014-11-18 12:11:47
http://php5.kiev.ua/manual/ru/pdf.installation.html

    Поддержать сайт на родительском проекте КГБ