Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mPDF set Height for SetHTMLHeader

Tags:

height

mpdf

Exist any way to set the Height of header when use SetHTMLHeader function?

In the first page the size by default is correct but in the next pages, the content overwrites the end part of the header.

Regards, Oscar.

like image 926
Oscar Fernández Arcís Avatar asked Oct 22 '25 05:10

Oscar Fernández Arcís


1 Answers

Finally use this:

$this->mpdf->mPDF('utf-8','A4','','','15','15','28','18'); 

When 15=margin-left, 15=margin-right, 28=margin-top, 18=margin-bottom

And now works well. Regards, Oscar

like image 71
Oscar Fernández Arcís Avatar answered Oct 26 '25 16:10

Oscar Fernández Arcís