This is not quite complete, due to a bug in pdflib 3.0.
/* }}} */
-/* {{{ 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;
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;
RETURN_TRUE;
}
+
/* }}} */
/* {{{ proto void pdf_begin_page(int pdfdoc, double width, double height)