diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/pdf/pdf.c | 4 | ||||
-rw-r--r-- | ext/pdf/php_pdf.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c index 33a709f658..1933000e0c 100644 --- a/ext/pdf/pdf.c +++ b/ext/pdf/pdf.c @@ -98,7 +98,9 @@ function_entry pdf_functions[] = { PHP_FE(pdf_set_text_rendering, NULL) PHP_FE(pdf_set_horiz_scaling, NULL) PHP_FE(pdf_set_text_rise, NULL) +#if PDFLIB_MAJORVERSION < 3 & PDFLIB_MINORVERSION < 30 PHP_FE(pdf_set_text_matrix, NULL) +#endif PHP_FE(pdf_set_text_pos, NULL) PHP_FE(pdf_set_char_spacing, NULL) PHP_FE(pdf_set_word_spacing, NULL) @@ -875,6 +877,7 @@ PHP_FUNCTION(pdf_set_text_rise) { } /* }}} */ +#if PDFLIB_MAJORVERSION < 3 & PDFLIB_MINORVERSION < 30 /* {{{ proto void pdf_set_text_matrix(int pdfdoc, arry matrix) Sets the text matrix */ PHP_FUNCTION(pdf_set_text_matrix) { @@ -926,6 +929,7 @@ PHP_FUNCTION(pdf_set_text_matrix) { RETURN_TRUE; } /* }}} */ +#endif /* {{{ proto void pdf_set_text_pos(int pdfdoc, double x, double y) Set the position of text for the next pdf_show call */ diff --git a/ext/pdf/php_pdf.h b/ext/pdf/php_pdf.h index fb4f51dd07..e707507eb8 100644 --- a/ext/pdf/php_pdf.h +++ b/ext/pdf/php_pdf.h @@ -66,7 +66,9 @@ PHP_FUNCTION(pdf_set_leading); PHP_FUNCTION(pdf_set_text_rendering); PHP_FUNCTION(pdf_set_horiz_scaling); PHP_FUNCTION(pdf_set_text_rise); +#if PDFLIB_MAJORVERSION < 3 & PDFLIB_MINORVERSION < 30 PHP_FUNCTION(pdf_set_text_matrix); +#endif PHP_FUNCTION(pdf_set_text_pos); PHP_FUNCTION(pdf_set_char_spacing); PHP_FUNCTION(pdf_set_word_spacing); |