
To install PDFlib on Centos server, you may follow the guide below,
1. Download the PDFlib-Lite package,
cd /usr/local/src
wget http://www.pdflib.com/binaries/PDFlib/705/PDFlib-Lite-7.0.5.tar
2. Extract and go to PDFlib-Lite folder,
tar -zxvf PDFlib-Lite-7-*
cd PDFlib-Lite-7.0*
3. Configure PDFlib-Lite,
./configure --prefix=/usr/local
4. Create installation file and install it,
make
make install
5. Once PDFlib-Lite installed, download PDFlib with PECL,
pecl download pdflib
6. Extract and enter the folder,
tar xvzf pdflib-*.tgz
cd pdflib-*
7. Create configuration file,
phpize
8. Configure, create configuration file and install PDFlib,
./configure
make
make install
9. A pdf.so will be created in your PHP extension folder, check it from PHP info,
php -i | grep extension_dir
10. If it is not exists, add the following line to the php.ini,
extension="pdf.so"