Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ParthiBarath's avatar

How to add border bottom for last row of table in each page in mpdf and extend last row to the footer on each page

I used mpdf in Laravel to create an invoice with an HTML table that has a header and footer.

The table breaks automatically when it reaches the footer, but the border at the bottom of the last row is missing like in the image below: No border at bottom

How can I add the border at the bottom of the last row on each page? Also, I need to extend the height of the last row to the start of the footer on each page.

0 likes
1 reply

Please or to participate in this conversation.