Hi, do you know if it’s possible to have a payment...
# advancedpdf
a
Hi, do you know if it’s possible to have a payment info section shown at the bottom of the page, only in the last page? Not ok In the footer macro since it will be shown in all pages. Also tried with the absolute position, not working because of an exception.
d
Unfortunately not (without knowing how many pages there will be ahead of time) This is because freemarker/template (that determines which page to have your payment footer on) doesn't know how many pages there'll actually end up being when BFO (the rendering engine the template is passed to) creates the PDF
You can try to do some clever stuff about making tables all have fixed row heights and calculating how many rows equal how many pages, but.... it will probably be a bit of a headache to get to work (also not very flexible)
a
Any idea using styles?
d
Grasping at straws a bit, but maybe you can move the payment info "footer" into the body instead, printing after all the items/lines
And if you wanted the payment info to print at the bottom of the page: Potentially adding a table, positioning the bottom edge absolutely, then stretching the tr to occupy 100%? like this: https://stackoverflow.com/questions/10630311/make-a-table-fill-the-entire-window