pdf_add_bookmark -- Adds bookmark for current page
Syntax
int pdf_add_bookmark ( resource pdfdoc, string text, int parent, int open )
Add a nested bookmark under parent, or a new top-level
bookmark if parent = 0. Returns a bookmark descriptor
which may be used as parent for subsequent nested bookmarks.
If open = 1, child bookmarks will be folded out, and
invisible if open = 0.
Parameters parent and open
were optional before PHP 5.
// begin a new page pdf_begin_page($pdf, 300, 300);
// add a top-level bookmark $bookmark = pdf_add_bookmark($pdf, "People");
// add a nested bookmark pdf_add_bookmark($pdf, "Rasmus", $bookmark);
// and some text pdf_set_font($pdf, "Helvetica", 20, "host"); $text = "This is R's page"; $width = pdf_stringwidth($pdf, $text); pdf_set_text_pos($pdf, (300-$width)/2, 100); pdf_show($pdf, $text);
// close the page and the PDF pdf_end_page($pdf); pdf_close($pdf);
?>
Php pdf add bookmark Function syntax tag
pdf add bookmark php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php pdf add bookmark syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.