I have code like this:
$html2pdf = new HTML2PDF('P','A4','en');
$html2pdf->WriteHTML($html);
$html2pdf->Output();
How add page number at the bottom of the document?
i'm still looking for it ... and i have just found the solution : in your template, insert a code like :
<page>
<page_footer>
[[page_cu]]/[[page_nb]]
</page_footer>
</page>
complete sample here : http://wiki.spipu.net/doku.php?id=html2pdf:en:v4:bookmark