TOC urls https://stackoverflow.com/questions/21834136/tcpdf-table-of-contents-and-issues-with-page-numbers https://hotexamples.com/examples/-/TCPDF/Bookmark/php-tcpdf-bookmark-method-examples.html https://stackoverflow.com/questions/31760692/internal-linking-in-tcpdf https://stackoverflow.com/questions/50578949/how-to-create-dynamic-table-of-content-section-using-tcpdf-with-content-items-as For reference, the parameters for Bookmark are, at time of writing, here: 1 @param $txt (string) Bookmark description. 2 @param $level (int) Bookmark level (minimum value is 0). 3 @param $y (float) Y position in user units of the bookmark on the selected page (default = -1 = current position; 0 = page start;). 4 @param $page (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. 5 @param $style (string) Font style: B = Bold, I = Italic, BI = Bold + Italic. 6 @param $color (array) RGB color array (values from 0 to 255). 7 @param $x (float) X position in user units of the bookmark on the selected page (default = -1 = current position;). 8 @param $link (mixed) URL, or numerical link ID, or named destination (# character followed by the destination name), or embedded file (* character followed by the file name). Params addTOC( $page = '', $numbersfont = '', $filler = '.', $toc_name = 'TOC', $style = '', $color = array(0,0,0) ) addHTMLTOC( $page = '', $toc_name = 'TOC', $templates = array(), $correct_align = true, $style = '', $color = array(0,0,0) ) Output a Table Of Content Index (TOC) using HTML templates. 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.