I have a page of a product report that converts it to pdf using wkhtmltopdf.
My problem is when generating the pdf I want to put a div with a banner at the end of category, if the category does not occupy the entire page. EX: report with 10 page on the tenth page the products occupied only half of the page, so place a banner.
If the products occupy the entire page do not show the banner. not even the next one.