mPDF set Height for SetHTMLHeader

Oscar Fernández Arcís picture Oscar Fernández Arcís · Sep 3, 2014 · Viewed 15.5k times · Source

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.

Answer

Oscar Fernández Arcís picture Oscar Fernández Arcís · Sep 9, 2014

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