cvs: /php4/ext/pdf pdf.c
| From: | Uwe Steinmann | Date: | Thu, 12 Aug 1999 17:45:00 +0000 |
| Subject: | cvs: /php4/ext/pdf pdf.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-3379@lists.php.net to get a copy of this message | ||
steinm Thu Aug 12 13:45:00 1999 EDT
Modified files:
/php4/ext/pdf pdf.c
Log:
fixed unresolved symbol pdf_open_memory_image when pdflib 2.01 is used
Index: php4/ext/pdf/pdf.c
diff -u php4/ext/pdf/pdf.c:1.8 php4/ext/pdf/pdf.c:1.9
--- php4/ext/pdf/pdf.c:1.8 Mon Aug 9 04:39:26 1999
+++ php4/ext/pdf/pdf.c Thu Aug 12 13:45:00 1999
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pdf.c,v 1.8 1999/08/09 08:39:26 steinm Exp $ */
+/* $Id: pdf.c,v 1.9 1999/08/12 17:45:00 steinm Exp $ */
/* pdflib 2.01 is subject to the ALADDIN FREE PUBLIC LICENSE.
Copyright (C) 1997 Thomas Merz. */
@@ -2022,7 +2022,7 @@
#if PDFLIB_MINORVERSION == 0
pdf_image = PDF_open_memory_image(pdf, buffer, im->sx, im->sy, 3, 8);
#else
- pdf_image = PDF_open_memory_image(pdf, "raw", "memory", buffer,
im->sx*im->sy*3, im->sx, im->sy, 3, 8, NULL);
+ pdf_image = PDF_open_image(pdf, "raw", "memory", buffer,
im->sx*im->sy*3, im->sx, im->sy, 3, 8, NULL);
#endif
if(-1 == pdf_image) {