TCPDF::Bookmark( $txt,  $level,  $y = -1,  $page = '',  $style = '',  $color = array(0, 0, 0),  $x = -1,  $link = '' )

Adds a bookmark.


Description Description


Parameters Parameters

$txt

(Required) (string) Bookmark description.

$level

(Required) (int) Bookmark level (minimum value is 0).

$y

(Optional) (float) Y position in user units of the bookmark on the selected page (default = -1 = current position; 0 = page start;).

Default value: -1

$page

(Optional) (int|string) Target page number (leave empty for current page). If you prefix a page number with the
* character, then this page will not be changed when adding/deleting/moving pages.

Default value: ''

$style

(Optional) (string) Font style: B = Bold, I = Italic, BI = Bold + Italic.

Default value: ''

$color

(Optional) (array) RGB color array (values from 0 to 255).

Default value: array(0, 0, 0)

$x

(Optional) (float) X position in user units of the bookmark on the selected page (default = -1 = current position;).

Default value: -1

$link

(Optional) (mixed) URL, or numerical link ID, or named destination (# character followed by the destination name), or embedded file (* character followed by the file name).

Default value: ''


Top ↑

Source Source

File: includes/lib/tcpdf/tcpdf.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.002 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.