
Originally Posted by
MZmuda
This suggests to me that pdflib is installed and recognized by php, BUT...
when I do a pdf_begin_document(), (as copied / pasted from the PHP.net PDF example area) I get the following error:
Fatal error: Call to undefined function: pdf_begin_document() in ...
Looks like you're using the PHP4 style function-oriented method (as opposed to the PHP5 object-oriented method).
Have you followed the method on php.net precisely?
Code:
In PHP 4, first a PDF resource has to be retrieved with a function call like
$p = PDF_new().
If you're just using pdf_begin_document() without preparing things first, it's probably not going to work.
Take a glance through the manual again. Copy and paste the entire example and run it to first get a feel for how it works.