3
I have an application and need to print a document using the class mPDF, however, I need the number of the paging start, for example from the number 43, 44, 45 and so on and not from the 1, 2, 3, how is your default. I would like the pagination to start from a variable $numero_inicial
. I managed to get from any number, but just skipping a leaf through the pagebreak
and resetnumpage
, but I can’t skip a page and leave a blank sheet.
Below is my code.
$mpdf = new mPDF();
$mpdf->setFooter("{PAGENO}");
$numero_paginas = "{nb}";
$mpdf->SetHTMLHeader('
<table>
<tr>
<td>
<img src="img/cabecalho.png" />
</td>
</tr>
</table>
<hr>');
$mpdf->SetHTMLFooter('');
$mpdf->WriteHTML('
<style type="text/css">
body{
font-family:Arial, Times New Roman, sans-serif;
font-size:10px;
}
</style>' . $corpo_documento . '');
$mpdf->Output();
exit;