Badarudin Syah
Badarudin Syah

Reputation: 33

Mpdf remove footer and use it's space for content

This is my first time using Mpdf. I want to delete space on the bottom of my pdf layout, this is the pic of my pdf enter image description here

I think this is the space of footer because when I add <footer></footer> it can fill the space. I want to delete the space so my table layout can reach the bottom. Thanks

Upvotes: 0

Views: 2419

Answers (2)

Jake Jackson
Jake Jackson

Reputation: 763

Use the @page CSS property to control the page margins.

@page {
   margin: 5mm 10mm 5mm 10mm;
}

The order of the units is top, right, bottom, left. That will allow for a bigger content area.

Upvotes: 2

Mohan
Mohan

Reputation: 172

Try to set margin-bottom & margin-footer. Refer https://mpdf.github.io/headers-footers/headers-top-margins.html

Upvotes: 1

Related Questions