The PHP bundled Pdflib library may be the best Web publishing platform. A pair of typical usage:
Demand Brochure
E-commerce Shipping list
With this guide, you can learn how to use the PDF extensions in PHP4 to create PDF documents.
We also focus on using MySQL data to create PDF documents.
Content Summary
Install Pdflib 3.0.1 and PHP4.01PL2 with PDF support: You can install the latest PHP4.03PL1
Extract PDF document
(I suppose you have a little experience in configuring PHP)
Install Pdflib and PHP with PDF support.
Demand:
PHP 4.02 Download from http://php.net
Pdflib 3.0.1 Download from http://www.pdflib.com
This is how to let PDFLib3.0.1 and PHP4 work together a small secret recipe: (Foreigner very humorous ^_^)
Download the EXT/PDF/PDF.C patch directly from http://www.php.net to support Pdflib v 3.0.1
Download PDFLib3.0.1 from here http://www.pdflib.com
Applicable patches You can find http://www.pdflib.com/pdflib/patches.html here
Configure, make, and install Pdflib
#./configure--enabled-shared-pdflib
#make
#make Install
You will make Pdflib installed in/usr/local/lib.
Configure PHP
#./configure--with-apxs=/usr/bin/apxs
--WITH-GD--with-pdflib=/usr/local--with-mysql=/usr/local
--WITH-CONFIG-FILE-PATH=/ETC/HTTPD--WITH-ZLIB-DIR=/USR
--with-ttf=/usr/local/include
--WITH-JPEG-DIR=/USR--WITH-TIFF-DIR=/USR
--with-system-regex=yes--enable-debug=no
#make
#make Install
Update System Library
Insert/usr/local/lib into/etc/ld.so.conf (file)
#/sbin/ldconfig
Testing and validation
Now you need to restart Apache.
#apachectl restart
Copy pdfclock.php to the httpd directory (that is, the Web directory) ... Test.... Everything's fine.
Important Information