From b952c2c95aac3f0c3cf5256bcdd1a56a8ea43d55 Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Wed, 28 Jun 2000 11:44:32 +0000 Subject: [PATCH] Added note about creating PDF documents in memory. This is not quite complete, due to a bug in pdflib 3.0. --- ext/pdf/pdf.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c index 6610f6495c..e535d4e540 100644 --- a/ext/pdf/pdf.c +++ b/ext/pdf/pdf.c @@ -438,8 +438,9 @@ PHP_FUNCTION(pdf_set_info_keywords) { /* }}} */ -/* {{{ 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 @@ PHP_FUNCTION(pdf_open) { 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 @@ PHP_FUNCTION(pdf_close) { RETURN_TRUE; } + /* }}} */ /* {{{ proto void pdf_begin_page(int pdfdoc, double width, double height) -- 2.50.1