I downloaded php-5.1.2-Win32.zip and pecl-5.1.2-Win32.zip, uncommented the line in php.ini so the pdf extension can be loaded:
extension=php_pdf.dll
phpinfo() is showing that the extension is loaded:
PDF Support enabled
PDFlib GmbH Version 5.0.3
PECL Version 2.0.5
Revision $Revision: 1.144 $
I tried using one example script from php.net but initializing the pdf object is failing. The browser displays "The page cannot be displayed" and when I call the script from the command line:
php pdf-example.php
i receive: PDFlib exception (fatal): [1202] PDF_set_parameter: Unknown key 'objorient'
The script is taken from http://www.php.net/pdf (example 2 script for PHP5) and Im not going to reproduce it here. But even with only one line:
<?
$pdf = new PDFlib();
?>
I get the same PDFlib exeption (fatal) error.
I compiled on Linux libpdf and it works fine. On Windows, which is my dev machine, I cant make it work.
Thanks for the ideas!