hey guys,

i'm trying to install pdflib, but it won't work.
i downloaded the latest version from www.pdflib.com and copied the libpdf_php.dll file into my extensions directory - just as the installation instuctions told me. then i restarted my apache and ran my script:

<?php
$fd = fopen('test.pdf','w');
$pdfdoc = pdf_open($fd);
?>

this brings me the error Call to undefined function: pdf_open().

Running phpinfo() it shows me no information about pdflib.

My system:
- Win XP
- Apache 1.3.27
- PHP 4.2.3

Thanx in advance,
styler.

    Did you add the "extension=libpdf_php.dll" (or whatever the extension name is supposed to be) line to your php.ini file?

      Hi ognotongo,
      Thanx for your help.
      I forgot to add this line in the php.ini file. Now I did this, but it didn't help anything.

      Thank you again,
      styler.

        In that case I would read the "readme.txt" file in the /bind/php directory of the zip file you downloaded. There is some information in there about how different versions of PHP and how PHP has been setup that can affect wether or not PDFLib will work properly. Hopefully you'll find something in there you missed. You should also try running some of the examples they give you to see if they work. Good luck! 😮)

          Write a Reply...