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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With