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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -