(PHP3 >= 3.0.9, PHP4 >= 4.0b4)
cpdf_add_outline -- Könyvjelzőt helyez el az aktuális oldalon
Leírás
void cpdf_add_outline
(int pdf document, string text)
A cpdf_add_outline() függvény a
text szöveggel egy könyvjelzőt
helyez el, amely az aktuális oldalra mutat.
Példa 1. Oldalvázlat hozzáadása 1
2
3 <?php
4 $cpdf = cpdf_open(0);
5 cpdf_page_init($cpdf, 1, 0, 595, 842);
6 cpdf_add_outline($cpdf, 0, 0, 0, 1, "1. oldal");
7 // ...
8 // némi rajzolása
9 // ...
10 cpdf_finalize($cpdf);
11 Header("Content-type: application/pdf");
12 cpdf_output_buffer($cpdf);
13 cpdf_close($cpdf);
14 ?>
15
16 |
|