Page 1 of 1

Where does pdf_findfont finds for fonts in Windows ?

Posted: Sun Sep 05, 2004 9:53 am
by anjanesh
$font = pdf_findfont($pdf, "Times New Roman", "winansi", 1);
gives
Fatal error: PDFlib error: [2516] PDF_findfont: Metrics data for font 'Times New Roman' not found in xxxx.php on line xx
I copied the times new roman font file into the dirt where the script resides but no luck. Is there any particular place for this ?
Running on Win 2K3 Server - IIS 6.

Posted: Sun Sep 05, 2004 10:38 am
by feyd
it likely needs to be somewhere in the include path. Maybe try putting it where the script is being called from, instead of where the script is stored.

Posted: Sun Sep 05, 2004 11:17 am
by anjanesh
Tried : pdf_set_parameter($pdf, "resourcefile", "c:\\windows\\fonts\\times.ttf");
Still : Fatal error: PDFlib error: [2516] PDF_findfont: Metrics data for font 'Times New Roman' not found in xxx.php on line xx

Posted: Sun Sep 05, 2004 9:43 pm
by anjanesh
I checked up phpinfo in my site and pdf does not exist.
How do I get it enabled my host ?

Posted: Sun Sep 05, 2004 9:47 pm
by feyd
ask them. :roll: