ID: 14377
Updated by: rjs
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: PDF related
Operating System: linux suse
PHP Version: 4.0.6
New Comment:

This is allready fixed in the current CVS Version. Also the next minor Release of 
PDFlib (V4.0.2) will contain the bugfix in the companion wrapper code.

Previous Comments:
------------------------------------------------------------------------

[2001-12-07 08:24:18] [EMAIL PROTECTED]

pdf_get_value for font metrics keys, with font descriptor modifier does not handle the 
descriptor correctly:

example code :

$pdf = pdf_new();
pdf_open_file($pdf, "");
pdf_begin_page($pdf, 595, 842);
$font = pdf_findfont($pdf, "Times-Roman", "winansi",0); 
pdf_get_value($pdf,'ascender',$font);
pdf_end_page($pdf);
pdf_close($pdf);

output:
Fatal error: PDFlib error: Bad font descriptor 1 in PDF_get_value/descender 

fix: 
pdf_get_value($pdf,'descender',$font-1);

When several fonts are (pre-)loaded, only query to the last one fails. The returned 
value for the others are probably mixed up. 
PDFlib GmbH Version 4.0.1 
Revision $Revision: 1.79.2.1 $ 


------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=14377&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to