Reputation: 139
I already able to set up Header and Footer.
But, my content by writeHTMLCell cannot fit into the page properly, footer is overlay the content.
using A4 size, Header is 35% height; Content is 50% height; and Footer is 15% height.
I do not know how to set the Content's height to be 50% in all page.
Upvotes: 3
Views: 5204
Reputation: 139
The solution is $pdf->SetAutoPageBreak(true, 55);
Original is $pdf->SetAutoPageBreak(true, PDF_MARGIN_BOTTOM);
Set value in PDF_MARGIN_BOTTOM
will do.
Upvotes: 4