]> granicus.if.org Git - php/commitdiff
- more removal of obsolete pdflib functions, but no changes to the php
authorUwe Steinmann <steinm@php.net>
Wed, 7 Jun 2000 19:44:47 +0000 (19:44 +0000)
committerUwe Steinmann <steinm@php.net>
Wed, 7 Jun 2000 19:44:47 +0000 (19:44 +0000)
  api

ext/pdf/pdf.c

index 506476c0c1aeb7d1f74250b43cc5ffd2060b6317..a24083d5c71db4f739de4578194e575e8b532869 100644 (file)
@@ -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);
 }