I have some HTML using which I am printing a PDF, I would like to get the count of total pages the PDF will produce in a PHP Variable.
$html2pdf = new HTML2PDF('P', 'A4');
$html2pdf->writeHTML($html, false);
$html2pdf->Output('myfile.pdf');
I would like to do something like..
$totalpages = $html2pdf->getTotalPageCount(); //should return total pages the myfile.pdf would produce.