PDF_add_outline

PDF_add_outline -- Adds bookmark for current page

Description

void pdf_add_outline(int pdf document, string text);

The PDF_add_outline() function adds a bookmark with text text that points to the current page.

Unfortunately pdflib does not make a copy of the string, which forces PHP3 to allocate the memory. Currently this piece of memory is not been freed by any PDF function but will be taken care of by the PHP3 memory manager.