I have just recently compiled pdflib 4.0.3 as a module for php 4.2.2 on Redhat. After much teeth nashing and brow beating I got it to work, to a point.
I am getting the following error: PDFlib error: Outline data for font 'Courier' not found
here's the portion of code that deals with the font:
pdf_set_parameter($pdf, "resourcefile", "/path/to/install/pdflib-4.0.3/fonts/pdflib.upr");
$font = pdf_findfont($pdf, "Courier", "host", 1);
if($font){
pdf_setfont($pdf, $font, 12);
}
in the directory I have specified as the resourcefile directory, there are .afm files for all the base fonts, including Courier. What am I missing here?
Any help is appreciated.