If you would like to create PDFs on the fly with PHP you will need to install PDFlib.
There is a bunch of documentation but these are the steps I used for centos 5.5
Keep in mind not all these commands work for Cent but I just through everything at it.
if you get to the ./configure make and get the error no gcc type: yum install gcc
pecl install pdflib
apt-get install php-pear
peardev install pecl/pdflib
aptitude install php-pear
yum install php-pear*
peardev install pecl/pdflib
mkdir installs
cd installs
mkdir pdf
cd pdf
wget http://www.pdflib.com/binaries/PDFlib/705/PDFlib-Lite-7.0.5p3.tar.gz
tar -xzvf PDFlib-Lite-7.0.5p3.tar.gz
cd pdf
ls
cd..
ls
cd pdf
./configure && make && make install
pecl install pdflib
1
path: /usr/local
nano /etc/php.d/pdf.ini
add line: extension=pdf.so
service httpd restart
PHP info should show
PDF Support | enabled |
---|---|
PDFlib GmbH Version | 7.0.5p3 |
PECL Version | 2.1.9 |
Revision | $Revision: 325992 $ |