I'm having a problem with the header in relation to body text when generating a PDF.
The header is being overwritten by body text, how to solve this?
I am using the SetHTMLHeader
method for the header and the WriteHTML
method for body text. Is there any way to increase the size reserved for the header with this library, or something else that solves it?
My current code:
<?php
session_start();
include('mpdf60/mpdf.php');
$paragrafo = "";
for($x=1;$x<=12;$x++){
$paragrafo.=$_SESSION['c'.$x]."<br/>";
}
$cabecalho = $_POST['cabecalho'];
$mpdf=new mPDF();
$mpdf->SetDisplayMode('fullpage');
$mpdf->SetHTMLHeader($cabecalho);
$mpdf->WriteHTML($paragrafo);
$mpdf->Output();
exit;?>
How I wanted you to stay:
Howareyoudoing: