From:             satheeshpro at gmail dot com
Operating system: windows
PHP version:      4.4.2
PHP Bug Type:     PDF related
Bug description:  PDFlibexception

Description:
------------
Fatal error: Uncaught exception 'PDFlibException' with message 'Metrics
data for font 'Arial' not found' in C:\wamp\www\pdf_file.php:9 Stack
trace: #0 C:\wamp\www\pdf_file.php(9): pdf_findfont(Resource id #2,
'Arial', 'host', 1) #1 {main} thrown in C:\wamp\www\pdf_file.php on line 9

Reproduce code:
---------------
<?php
$pdf = pdf_new();
pdf_open_file($pdf,'c:\bennyboy.pdf');
pdf_set_info($pdf, "Author", "Ben Shepherd");
pdf_set_info($pdf, "Title", "Creating a pdf");
pdf_set_info($pdf, "Creator", "Ben Shepherd");
pdf_set_info($pdf, "Subject", "Creating a pdf");
pdf_begin_page($pdf, 595, 842);
$arial = pdf_findfont($pdf, "Arial", "host", 1);
pdf_setfont($pdf, $arial, 14);
pdf_show_xy($pdf, "<Type your info here>",50, 400);
$gif_image = pdf_open_gif($pdf, "logo_i.gif");
pdf_place_image($pdf, $gif_image, 200, 300, 1.0);
pdf_close_image($pdf, $gif_image);
pdf_end_page($pdf);
pdf_close($pdf);
echo "<A HREF=\"C:\bennyboy.pdf\" TARGET=\"_blank\">Open pdf in a new
window $user</A>";
?>

Expected result:
----------------
I expect to create a pdf file successfully



-- 
Edit bug report at http://bugs.php.net/?id=37582&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37582&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37582&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37582&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37582&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37582&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37582&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37582&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37582&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37582&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37582&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37582&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37582&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37582&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37582&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37582&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37582&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37582&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37582&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37582&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37582&r=mysqlcfg

Reply via email to