How to install pdflib on WAMP Server


I want to install pdflib on my wampserver2.

I have <a href="http://www.pdflib.com/download/" rel="nofollow">downloaded pdflib</a> and I've set the following line:


in my php.ini file, but I'm still getting a Call to undefined function pdf_new() error.


You must copy the libpdf_php.dll to the extension directory of your php installation (check for extension_dir in your phpinfo() output).

Also take care to use the version of PDFlib that matches your php version and compiler (multiple versions are included in the download you mentioned).

Then add extension=libpdf_php.dll to the php.ini (you can also find it's location listed in the phpinfo() output, just look for php.ini).

Restart your webserver and check if you have a "PDF" entry in your phpinfo() and if so, congratulations!

If you want more detailed information about PDFlib and it's use in php , be sure to check out the <a href="http://www.pdflib.com/developer/technical-documentation/pdflib-in-php-howto/" rel="nofollow">online php howto</a>(a pdf link, of course) and also consult the documentation included in your download package.


Here are what you should do in order to install <strong>phppdf</strong> library:

<strong>1 . download</strong>: download the package which matches your php version from <a href="http://pecl.php.net/package/pdflib" rel="nofollow">here</a> (check the php version using phpinfo() command).

The package shall contain the following files,

php_pdflib.dll //php extension php_pdflib.pdb //don't know what it does! pdflib.dll //actual pdf library

<strong>2 . copy</strong>: copy <strong>php_pdflib.dll</strong> into the extensions directory (again find the extension directory using phpinfo() command <strong>"extension_dir"</strong>). also copy <strong>php_pdflib.pdb</strong> and <strong>pdflib.dll</strong> into the main php directory (<strong>right next to the php.exe</strong>)

<strong>3 . config</strong>: add the extension to php.ini. just remember wamp uses another version of php.ini at <strong>apache/bin/php.ini</strong>, So make sure you're making changes on the right file. (again find the php.ini's path using phpinfo() command, <strong>Loaded Configuration File</strong>). Add the following line:



  • Getting “webpage is not found” and “timeout error” on form
  • php upload script produces error 500 for files larger than 100 Kb
  • WinXP - PHP Startup: Unable to load dynamic library php_ibm_db2.dll
  • Connection OCI8 for PHP on IIS7 windows 2008
  • Unable to enable ext-gmp
  • Change version php on OVH
  • How to debug charts package 'No module named 'plot' ' Error
  • Install error of package plyr
  • Android parse error Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED (because of Capital
  • -restcomm configuration for Windows
  • No System image available when adding AVD in Android studio
  • How to run Java in compatibility mode?
  • How to Use Two Different PHP Versions on One Server
  • Entity Framework Core 1.0.1 add-migration
  • Xcode duplicated devices bug
  • CUDA NSight is not installed with CUDA 5.0 installation file on Windows 8? [closed]
  • How to use the resource module to measure the running time of a function?
  • Add Windows Feature from C#
  • SSL client cert authentication for only some URLs?
  • Translating C# to PowerShell in InterIMAP
  • zope_i18n_compile_mo_files doesn't work on a Zeo configuration
  • How to suppress a dialog
  • Very simple C++ DLL that can be called from .net
  • Checking free space on FTP server
  • Change Inet root folder for iis 7
  • Recording logins for password protected directories
  • ilmerge with a PFX file
  • Splitting given String into two variables - php
  • What is Eclipse's Declaration View used for?
  • Check if a string to interpolate provides expected placeholders
  • SSO with signing and signature validation doesn't work
  • Deserializing XML into class C#
  • Updated Ionic CLI but shows previous version (Windows)
  • Redux, normalised entities and lodash merge
  • Function pointer “assignment from incompatible pointer type” only when using vararg ellipsis
  • How to include full .NET prerequisite for Wix Burn installer
  • python draw pie shapes with colour filled
  • costura.fody for a dll that references another dll
  • How to Embed XSL into XML
  • jQuery Masonry / Isotope and fluid images: Momentary overlap on window resize