estoy armando un pdf con la librería mpdf de php, no me respeta el footer en la primer pagina, alguien tiene idea de ¿por qué?
No se si sea que al setear los footers me falte algun parámetro.
Tambien coloque los footers segun los ejemplos que da la libreria.
require( '../../../com/functions.php' );
if (!isset($_POST["html"])) {
echo "<h1 style='text-align:center;'> No se pudo Generar el PDF:(</h1>";
die();
}
ob_start();
echo '
<table style="width:100%;">
<tr>
<td rowspan="2" style="width:20%" >
<img width="225" src="https://www.cofemsa-sistema.com/sistema/img/logo.jpg" />
</td>
<td class="center" rowspan="2" style="width:50%;text-align: center;">
<h2><strong>R 8.1-H I-Chart</strong></h2>
</td>
<td style="width:15%;font-size:12px;text-align:center;">
Fecha de Revision:
</td>
<td style="width:15%;text-align:center;font-size:12px;">
05/06/2018
</td>
</tr>
<tr>
<td style="width:15%;font-size:12px;text-align:center;">
Revision:
</td>
<td style="width:15%; text-align:center;font-size:12px;">
0
</td>
</tr>
<tr>
<td colspan="4" style="width:100%;">
<br><br>
</td>
<tr>
<tr>
<td colspan="4" class="column-bg-template" style="width:100%;height:15px;">
</td>
<tr>
<tr>
<td colspan="4" style="width:100%;">
<br><br>
</td>
<tr>
</table>
<table>
<tr>
<td class="center" colspan="2" style="text-align: center; vertical-align: middle;"><h2><strong>GRAFICAS</strong></h2></td>
</tr>
<tr>
<td>
<img src="lineal.jpg" style="width:95%; height:300px;vertical-align: top"/>
</td>
<td>
<img src="barras.jpg" style="width:95%; height:300px;vertical-align: top"/>
</td>
</tr>
<tr>
<td colspan="2" style="width:100%;">
<br><br>
</td>
<tr>
</table>'.$_POST["html"];
?>
<?php
$html = ob_get_contents();
ob_end_clean();
include("../mpdf.php");
$mpdf = new mPDF('c', 'A4-L');
// $mpdf = new mPDF('c');
$mpdf->mirrorMargins = true;
// $mpdf->mPDF('utf-8','A4','','','13','13','43','13');
$mpdf->SetDisplayMode('fullpage');
$mpdf->list_indent_first_level = 0;
$stylesheet = file_get_contents('../../../css/estilosPDFS.css');
$mpdf->WriteHTML($stylesheet,1);
$mpdf->WriteHTML($html,2);
// $mpdf->SetFooter('No controlado cuando se encuentre impreso|{PAGENO}|Tiempo de Retencion: Vida del Proyecto');
$footer = ' <table><tr><td style="width:15%;font-size:7px;">No controlado cuando se encuentre impreso</td> <td style="text-align:center;width:70%;font-size:10px;">{PAGENO}</td><td style="width:15%;font-size:7px;">Tiempo de Retencion: Vida del Proyecto</td></tr></table>';
$footerE = '<table><tr><td style="width:15%;font-size:7px;">No controlado cuando se encuentre impreso</td> <td style="text-align:center;width:70%;font-size:10px;">{PAGENO}</td><td style="width:15%;font-size:7px;">Tiempo de Retencion: Vida del Proyecto</td></tr></table>';
$mpdf->SetHTMLFooter($footer);
$mpdf->SetHTMLFooter($footerE,'E');
$mpdf->debug = true;
$mpdf->Output('Reporte.pdf','I');
?>
Aquí les muestro mi código y el pdf resultante, si aprecian no me sale el footer en la primera pagina. Ya intente varias cosas pero no logro hacer que se vea en todas las paginas.
La libreria utilizada para el pdf es MPDF y la version de php es la 5.6.