Install PDF Extensions
1. wget http://pecl.php.net/get/pdflib-4.1.2.tgz
2. Tar zxvf pdflib-4.1.2.tgz
3. CD pdflib-4.1.2.tgz
4./opt/lampp/bin/phpize
5../configure--with-php-config=/opt/lampp/bin/php-config
6. Make && make install
7. Vim/opt/lampp/etc/php.ini Add extension= "pdf.so"
8. Restart Xampp:/opt/lampp/xampp restart
If the error message is: warning:php startup:unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/ Pdf.so '-Libpdf.so.6:cannot open Shared object file:no such file or directory in Unknown on line 0
The workaround is: cp/usr/local/lib/libpdf.so.6/usr/local/lib64/
Indicates that the compiled 64-bit library is not installed in the/usr/local/lib64/directory
or modify the 5th step:./configure--with-php-config=/opt/lampp/bin/php-config--libdir=/usr/local/lib64/
Install xampp PHP PDF extension in Linux environment