Is there any way to create a specific footer for t...
# advancedpdf
m
Is there any way to create a specific footer for the last page only, when the # of pages can vary? Alternatively place the very last element/table of the body at the very bottom of the body section? What I want to achieve is placing a summary of the invoice total, VAT details etc at the bottom of the last page.
d
The way you mentioned, placing it at the very end of the body, is the only sane way to do it (unless you're somehow very exact with determining how many pages your pdf will turn into). As for making sure your summary section if aligned to the bottom of the page, and has enough space to print all in one section 🤷
Here's a post/link I pinned 📌 that may help with the 'has enough space' issue:
📌pin for question about template printing "footer table" only if there's space (otherwise print on new page)
> I have a table that goes right at the end, after the items table, how do I tell the template that if there is space print the table in the same page that the items list are if not, print it in a new page?
Answer:
> try
<table page-break-inside="avoid">
> https://bfo.com/products/report/docs/tags/atts/page-break-inside.html
m
Thank you, I will try this!