Hi,
I want to use TCPDF functions inside html2pdf.
While I am doing this i could not able to get the page numbers for my pages generated by TCPDF.
And also it not getting displayed in TOC.
PDF the code.
$html2pdf = new HTML2PDF('P', 'A4', 'fr', true, 'UTF-8', 0);
$html2pdf->writeHTML($content, isset($_GET['vuehtml']));
//$html2pdf->setde
//$html2pdf->writeHTML($content, isset($_GET['vuehtml']));
//$html2pdf->writeHTML($content, isset($_GET['vuehtml']));
// TCPDF code using tcpdf object
$html2pdf->pdf->AddPage('','', true, true);
$html2pdf->pdf->setEqualColumns(2, 20);
$html2pdf->pdf->setHeaderData('',10,20,"dsdsa");
$html2pdf->pdf->SetAutoPageBreak(true,5);
$html2pdf->pdf->setPrintFooter(true);
$html2pdf->pdf->writeHTML($html, true,true,true,true,'');
//html2pdf object
$html2pdf->writeHTML($content, isset($_GET['vuehtml']));
$html2pdf->Output('bookmark.pdf');
I need to generate the PDF which contains both html2pdf and tcpdf contents.
TOC should display all the pages.
Page no should be displayed for all the pages. Pleas help me.