Tcpdf multiple bookmarks on one page

Is it possible to have a PDF with multiple bookmarks on the same page? I have a page with multipe tables and each table needs to be bookmarked. These tables may enlarge and go to the next page.

+3


source to share


1 answer


The documentation maintains an explanation of how to do this here .

The syntax is as follows:



// Bookmark($txt, $level=0, $y=-1, $page='', $style='', $color=array(0,0,0))

$pdf->AddPage();
$pdf->Bookmark('Paragraph 1.1', 1, 0, '', '', array(0,0,0));
$pdf->Cell(0, 10, 'Paragraph 1.1', 0, 1, 'L');
$pdf->Bookmark('Paragraph 1.2', 1, 0, '', '', array(0,0,0));
$pdf->Cell(0, 10, 'Paragraph 1.2', 0, 1, 'L');

      

+1


source







All Articles