From 9861c56baa2ab7e948cc9947dcc02641afb4469b Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 20 Dec 1999 08:37:26 +0000 Subject: [PATCH] - marked optional arguments propperly - completed documentation of pdf_set_font(), pdf_add_outline() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@17611 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/pdf.xml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/functions/pdf.xml b/functions/pdf.xml index be96e80e07..39335f4a8f 100644 --- a/functions/pdf.xml +++ b/functions/pdf.xml @@ -701,7 +701,7 @@ fclose($fp); string font name double size int encoding - int embed + int embed The PDF_set_font function sets the @@ -1709,14 +1709,21 @@ PDF_stroke($pdf); Description - void pdf_add_outline + int pdf_add_outline int pdf document string text + int parent + int open The PDF_add_outline function adds a bookmark - with text text that points to the current page. - + with text text that points to the current page. + The bookmark is inserted as a child of parent and + is by default open if open is not 0. The + return value is an identifier for the bookmark which can be used + as a parent for other bookmarks. Therefore you can build up hierarchies + of bookmarks. + Unfortunately pdflib does not make a copy of the string, which forces PHP to allocate the memory. Currently this piece of memory is not