TCPDF::addTOC( $page = '',  $numbersfont = '',  $filler = '.',  $toc_name = 'TOC',  $style = '',  $color = array(0, 0, 0) )

Output a Table of Content Index (TOC).


Description Description

This method must be called after all Bookmarks were set. Before calling this method you have to open the page using the addTOCPage() method. After calling this method you have to call endTOCPage() to close the TOC page. You can override this method to achieve different styles.

See also See also


Top ↑

Parameters Parameters

$page

(Optional) (int) page number where this TOC should be inserted (leave empty for current page).

Default value: ''

$numbersfont

(Optional) (string) set the font for page numbers (please use monospaced font for better alignment).

Default value: ''

$filler

(Optional) (string) string used to fill the space between text and page number.

Default value: '.'

$toc_name

(Optional) (string) name to use for TOC bookmark.

Default value: 'TOC'

$style

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

Default value: ''

$color

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

Default value: array(0, 0, 0)


Top ↑

Source Source

File: includes/lib/tcpdf/tcpdf.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.5.000 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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