php - change top margin of second page using mPDF -
i'm dynamically generating pdfs unknown page count. mpdf working good, top margin on second page gone. how can set margins pages document?
i've tried following, has no effect:
$mpdf = new mpdf('', '', 0, '', 15, 15, 15, 15, 8, 8);
you can use this. seems work.
define margins using @page like:
<?php include("mpdf.php"); $html='<style>@page { margin: 0px; }</style> '; $mpdf=new mpdf('','a4'); $mpdf->writehtml($html); $mpdf->output(); ?>
Comments
Post a Comment