This all worked fine on my old machine, but I recently moved to a new G5 Mac and now am having trouble generating PDFs via PHP.
I checked and I have PDFlib version 6.01. Also made sure permissions were liberal enough on the directory PDF is writing to.
The error I'm getting is:
Fatal error: pdf_findfont(): [2100] PDF_findfont: Function must not be called in 'object' scope in /Library/WebServer/Documents/burton/admin/register.php on line 2061
I tried switching to pdf_load_font() as pdf_findfont is supposed to be deprecated, but I get the same error.
My call is:
$base_font = pdf_findfont($pdf, 'Helvetica', 'host', 0);
Any idea what's going on?