PDF Template -> pagination -> body overlapping footer

When creating PDF from Quote with lot of line items, it creates a paginated pdf file. But body/line items table is overlapping footer section. How to solve this? CSS?

do you have screenshot to show what you mean, perhaps modify the footer size to see if that helps

Just solved it, this solution worked for me.