Pdf header with absolute position

Asked

Viewed 35 times

-2

Good afternoon to all!! I am generating the pdf of a data with mpdf, and everything works except for the header that is generated and seems to be configured with 'position:Absolute", can you change this? the rest of the content is in div.... does it make a difference?? the code that generates the header is the:

$mpdf->SetHTMLHeader($Header,'O');

Without further ado, thank you all for your attention

1 answer

0


Good morning to all!! I was able to solve this problem by applying settings to the class constructor as follows:

$mpdf = new mPDF('utf-8', '','','',5,5,70,5);

Applying these settings, I was able to properly position the top!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.