summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/pdf/pdf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c
index a24083d5c7..d461b1d68b 100644
--- a/ext/pdf/pdf.c
+++ b/ext/pdf/pdf.c
@@ -720,7 +720,7 @@ PHP_FUNCTION(pdf_get_font) {
RETURN_FALSE;
}
- font = (int) PDF_get_value(pdf, "font");
+ font = (int) PDF_get_value(pdf, "font", 0);
RETURN_LONG(font);
}
@@ -747,7 +747,7 @@ PHP_FUNCTION(pdf_get_fontname) {
RETURN_FALSE;
}
- fontname = (char *) PDF_get_parameter(pdf, "fontname");
+ fontname = (char *) PDF_get_parameter(pdf, "fontname", 0);
RETURN_STRING(fontname, 1);
}
@@ -774,7 +774,7 @@ PHP_FUNCTION(pdf_get_fontsize) {
RETURN_FALSE;
}
- fontsize = PDF_get_value(pdf, "fontsize");
+ fontsize = PDF_get_value(pdf, "fontsize", 0);
RETURN_DOUBLE(fontsize);
}