html2pdf page numbering

Marcin Zaremba picture Marcin Zaremba · Jun 17, 2011 · Viewed 26.6k times · Source

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?

Answer

pit picture pit · Sep 18, 2012

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