mpdf / mpdf.github.io

mPDF documentation
https://mpdf.github.io
Other
508 stars 160 forks source link

Header overlap with content issue #162

Closed satishsharma-riseandinspire closed 3 years ago

satishsharma-riseandinspire commented 3 years ago

Hi, Below is my code:

$mpdf = new \Mpdf\Mpdf(); $mpdf->SetHTMLHeader($document[0]['header_content']); $mpdf->SetHTMLFooter($document[0]['footer_content']); $mpdf->setAutoTopMargin = 'stretch'; $mpdf->setAutoBottomMargin = 'stretch'; $mpdf->autoScriptToLang = true; $mpdf->autoLangToFont = true; $mpdf->WriteHTML($html); $mpdf->Output();

But, when converting pdf the header overlapped with content. stretch is not working.

mpdf (2).pdf

Thanks

satishsharma-riseandinspire commented 3 years ago

Hi,

You have closed my issue without any suggestion. kindly provide a solution.

Thanks

finwe commented 3 years ago

https://github.com/mpdf/mpdf/blob/development/.github/CONTRIBUTING.md

finwe commented 3 years ago

Mainly, note that you are in a completely incorrect repository.