PDFlib error 2516

From: Date: Thu, 15 Jan 2004 21:14:59 +0000
Subject: PDFlib error 2516
Groups: php.general 
Request: Send a blank email to php-general+get-174710@lists.php.net to get a copy of this message
Hello! Tried out this simple script from a tutorial on creating PDF with PHP: <?php $pdf = PDF_new(); PDF_open_file($pdf, "testpdf.pdf"); PDF_set_info($pdf, "Author", "Someone"); PDF_set_info($pdf, "Title", "PDF creation with PHP"); PDF_set_info($pdf, "Creator", "Someone"); PDF_set_info($pdf, "Subject", "Creating PDFs"); PDF_begin_page($pdf, 595, 842); $arial = PDF_findfont($pdf, "Arial", "host", 1); PDF_setfont($pdf, $arial, 14); PDF_show_xy($pdf, "Pricelist", 40, 780); PDF_end_page($pdf); PDF_close($pdf); ?> However got this error: Fatal error: PDFlib error: [2516] PDF_findfont: Metrics data for font 'Arial' not found in /usr/local/psa/home/vhosts/resilion.be/httpdocs/test/createpdf.php on line 23 Does anyone have an idea what the problem could be? What does the "host" mean in the example above ($arial = PDF_findfont($pdf, "Arial", "host", 1); )? Thanks for any help!!!! Mark.

« previous php.general (#174710) next »