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
David B
03/11/2021, 9:52 PM
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
David B
03/11/2021, 9:53 PM
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
Andrea Rivetti
03/16/2021, 11:57 AM
Any idea using styles?
d
David B
03/16/2021, 10:54 PM
Grasping at straws a bit, but maybe you can move the payment info "footer" into the body instead, printing after all the items/lines