cvs: php4 /ext/pdf pdf.c
| From: | Joey Smith | Date: | Wed, 28 Jun 2000 11:44:29 +0000 |
| Subject: | cvs: php4 /ext/pdf pdf.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-531@lists.php.net to get a copy of this message | ||
joey Wed Jun 28 04:44:29 2000 EDT
Modified files:
/php4/ext/pdf pdf.c
Log:
Added note about creating PDF documents in memory.
This is not quite complete, due to a bug in pdflib 3.0.
Index: php4/ext/pdf/pdf.c
diff -u php4/ext/pdf/pdf.c:1.47 php4/ext/pdf/pdf.c:1.48
--- php4/ext/pdf/pdf.c:1.47 Sat Jun 24 08:31:10 2000
+++ php4/ext/pdf/pdf.c Wed Jun 28 04:44:29 2000
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pdf.c,v 1.47 2000/06/24 15:31:10 sas Exp $ */
+/* $Id: pdf.c,v 1.48 2000/06/28 11:44:29 joey Exp $ */
/* pdflib 2.02 is subject to the ALADDIN FREE PUBLIC LICENSE.
Copyright (C) 1997 Thomas Merz. */
@@ -438,8 +438,9 @@
/* }}} */
-/* {{{ proto int pdf_open(int filedesc)
- Opens a new pdf document */
+/* {{{ proto int pdf_open([int filedesc])
+
+ Opens a new pdf document. If filedesc is NULL, document is created in memory. This is not yet
fully supported.*/
PHP_FUNCTION(pdf_open) {
pval **file;
int id;
@@ -475,9 +476,11 @@
id = zend_list_insert(pdf,PDF_GLOBAL(le_pdf));
RETURN_LONG(id);
}
+
/* }}} */
/* {{{ proto void pdf_close(int pdfdoc)
+
Closes the pdf document */
PHP_FUNCTION(pdf_close) {
pval *arg1;
@@ -501,6 +504,7 @@
RETURN_TRUE;
}
+
/* }}} */
/* {{{ proto void pdf_begin_page(int pdfdoc, double width, double height)