PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

cpdf_arc> <cpdf_add_annotation
Last updated: Sun, 25 Nov 2007

view this page in

cpdf_add_outline

(PHP 4, PHP 5 <= 5.0.5)

cpdf_add_outline — Adds bookmark for current page

Description

int cpdf_add_outline ( int $pdf_document , int $lastoutline , int $sublevel , int $open , int $pagenr , string $text )

Adds a bookmark with text text that points to the current page.

Parameters

pdf_document

The document handle, returned by cpdf_open().

lastoutline

sublevel

open

pagenr

text

The bookmark text

Παραδείγματα

Example#1 Adding a page outline

<?php
$cpdf 
cpdf_open(0);
cpdf_page_init($cpdf10595842);
cpdf_add_outline($cpdf0001"Page 1");
// ...
// some drawing
// ...
cpdf_finalize($cpdf);
header("Content-type: application/pdf");
cpdf_output_buffer($cpdf);
cpdf_close($cpdf);
?>



add a note add a note User Contributed Notes
cpdf_add_outline
There are no user contributed notes for this page.

cpdf_arc> <cpdf_add_annotation
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites