From: Uwe Steinmann Date: Wed, 7 Jun 2000 19:44:47 +0000 (+0000) Subject: - more removal of obsolete pdflib functions, but no changes to the php X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=169606602b6990d21db687b8bcf854b353913ce3;p=php - more removal of obsolete pdflib functions, but no changes to the php api --- diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c index 506476c0c1..a24083d5c7 100644 --- a/ext/pdf/pdf.c +++ b/ext/pdf/pdf.c @@ -720,7 +720,7 @@ PHP_FUNCTION(pdf_get_font) { RETURN_FALSE; } - font = PDF_get_font(pdf); + font = (int) PDF_get_value(pdf, "font"); RETURN_LONG(font); } @@ -747,7 +747,7 @@ PHP_FUNCTION(pdf_get_fontname) { RETURN_FALSE; } - fontname = (char *) PDF_get_fontname(pdf); + fontname = (char *) PDF_get_parameter(pdf, "fontname"); RETURN_STRING(fontname, 1); } @@ -774,7 +774,7 @@ PHP_FUNCTION(pdf_get_fontsize) { RETURN_FALSE; } - fontsize = PDF_get_fontsize(pdf); + fontsize = PDF_get_value(pdf, "fontsize"); RETURN_DOUBLE(fontsize); }