You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have html code, which i want to add to existing pdf file. Problem is, text in html is long and stays over pdf file. Pdf file is like inmovable image on the background. I tried to add margin-bottom or somehow to move the object, but it doesnt move, only texts in html moved.
mPDF version
8.1.3
PHP Version and environment (server type, cli provider etc., enclosing libraries and their respective versions)
8
Reproducible PHP+CSS+HTML snippet suffering by the error
$template = 'Text with css styling ';
$mpdf = new Mpdf\Mpdf(['format' => 'A4-P']);
$mpdf->use_kwt = true;
Guidelines
Description of the bug
I have html code, which i want to add to existing pdf file. Problem is, text in html is long and stays over pdf file. Pdf file is like inmovable image on the background. I tried to add margin-bottom or somehow to move the object, but it doesnt move, only texts in html moved.
mPDF version
8.1.3
PHP Version and environment (server type, cli provider etc., enclosing libraries and their respective versions)
8
Reproducible PHP+CSS+HTML snippet suffering by the error
$template = 'Text with css styling ';
$mpdf = new Mpdf\Mpdf(['format' => 'A4-P']);
$mpdf->use_kwt = true;
$pagecount = $mpdf->setSourceFile('mypdf.pdf');
$tplId = $mpdf->importPage($pagecount);
$mpdf->useTemplate($tplId);
$mpdf->WriteHTML($template, 2);
$mpdf->Output();
The text was updated successfully, but these errors were encountered: