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.

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

Reply via email to