budda
05-21-2002, 08:36 AM
We've got the latest PDFlib instaled for PHP here on RedHat 7 and Apache v1.
I'm having great trouble getting the new font functions to actually work! Old system is fine and still works using the pdf_set_font() command.
I'm selecting one of the 14 built in fonts "Times-Roman":
"$font = pdf_findfont($pdf, "Times-Roman", "host", 1);"
However PHP insists on giving me the error:
"Fatal error: PDFlib error: Resource configuration file 'pdflib.upr' not found"
According to the PDFlib manual, using any of the 14 built in fonts does not require the 'pdflib.upr' file. As a test I inserted the line...
"pdf_set_parameter($pdf, "resourcefile", "/home/Admin/pdflib-4.0.1/fonts/pdflib.upr");"
...in to my code just above the pdf_findfont() function.
The fatal error about the resource file goes away, but now I am greeted with:
"Fatal error: PDFlib error: Outline data for font 'Times-Roman' not found"
This is stupid as I don't want the outline data to be loaded - it should be using built in fonts!
Anybody know what has gone wrong, maybe during the installation process?
I'm having great trouble getting the new font functions to actually work! Old system is fine and still works using the pdf_set_font() command.
I'm selecting one of the 14 built in fonts "Times-Roman":
"$font = pdf_findfont($pdf, "Times-Roman", "host", 1);"
However PHP insists on giving me the error:
"Fatal error: PDFlib error: Resource configuration file 'pdflib.upr' not found"
According to the PDFlib manual, using any of the 14 built in fonts does not require the 'pdflib.upr' file. As a test I inserted the line...
"pdf_set_parameter($pdf, "resourcefile", "/home/Admin/pdflib-4.0.1/fonts/pdflib.upr");"
...in to my code just above the pdf_findfont() function.
The fatal error about the resource file goes away, but now I am greeted with:
"Fatal error: PDFlib error: Outline data for font 'Times-Roman' not found"
This is stupid as I don't want the outline data to be loaded - it should be using built in fonts!
Anybody know what has gone wrong, maybe during the installation process?