Thx

That was it.

Anybody have any ideas as to why this behaviour changed??


Regards



Jack

-----Original Message-----
From: Tom Rogers [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 05, 2004 12:46 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PDFLIB error 2516


Hi,

Friday, November 5, 2004, 8:18:16 PM, you wrote:
JvZnc> Hi All,
JvZnc> I upgraded my test system to 4.3.9 (from 4.3.4) and now run into 
JvZnc> problems with pdf creation. Scripts that ran fine before now 
JvZnc> return the following
JvZnc> error:

JvZnc> Fatal error: PDFlib error: [2516] PDF_findfont: Metrics data for 
JvZnc> font 'Arial' not found in d:\website\pdf_graph.php on line 50


JvZnc> Has anybody seen this before and knows of the solution? Google 
JvZnc> returned no hits that solved the problem.

JvZnc> <snip>

JvZnc> pdf_open_file($pdf, "d:\\website\\graphs.pdf");

JvZnc> pdf_set_info($pdf, "Author", "Automatically Generated"); 
JvZnc> pdf_set_info($pdf, "Title", "Management graphs"); 
JvZnc> pdf_set_info($pdf, "Creator", "Jacob A. van Zanen"); 
JvZnc> pdf_set_info($pdf, "Subject", "Management Graphs");



JvZnc> pdf_begin_page($pdf, 700, 600);
JvZnc> $bookmark1 = pdf_add_bookmark($pdf, "Information for machine 
JvZnc> SBPXXA1"); $arial = pdf_findfont($pdf, "Arial", "host", 1); 
JvZnc> pdf_setfont($pdf, $arial, 12);  //-----this is line 50
JvZnc> pdf_show_xy($pdf, "1     Information for machine SBPXXA1 for
$_POST[day]/
JvZnc> $_POST[month]/$_POST[year]",50, 510);


JvZnc> </snip>



JvZnc> TiA

JvZnc> Jack van Zanen


You have to tell pdf where to find the font, I do it this way

pdf_set_parameter($pdf, "FontOutline", "Arial=/path/to/arial.ttf");

-- 
regards,
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to