From 5dd0055c771e2b1cf32875fd4095714bb7624579 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 21 Feb 2000 16:23:09 +0000 Subject: - pdf_set_text_matrix() disappeared in pdflib 2.30. Put in another ifdef - small fix in testdom to suppress error msg. --- ext/pdf/pdf.c | 4 ++++ ext/pdf/php_pdf.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'ext') 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); -- cgit v1.2.1