That will work if you want the content on its own ...
# advancedpdf
m
That will work if you want the content on its own page. Not if you want a footer at the bottom of the last page.
g
@michoel does adding a
footer
attribute on the
pbr
tag shows the footer?
m
Seems like it would but there would be nothing else on that page besides for the footer.
If you want to have the footer on the last page with content that I believe is not possible in BFO - https://bfo.com/support/faq/#17
At the moment we do not have a facility for explicitly assigning a footer or header to the last page in a document when the number of pages is unknown.
g
@michoel I did this before and did a quick test just now. I can confirm that using `<pbr size="Letter" footer="footer2" />`works. Just make sure to create a macro for
footer2
m
Do you mean you can get a layout like this? With the payment terms footer displaying only on the final page of the content?
r
If you put a footer in the pbr tag, the footer will only appear on that page. This is if you do not put the footer in the body, if it is in the body, I believe it will be printed in all the pages
m
Yep. But what I am saying is AFAIK it is not possible to achieve the layout from the screenshot I posted above with a footer on the last page of the actual content. If you add a page break at the bottom of your template and set it footer on that, you will get a blank page with just the footer and nothing else.
r
True
g
@michoel yes. was able to attain that.
@michoel @rustyshackles here's the PDF I generated from the preview of the template I made. I simply created a macro for footer1 and footer2. footer1 has a table with empty content and assigned that to the body tag. footer2 is assigned to the pbr tag. footer2 has the content
m
The payment information is on its own page. Not at the bottom of a page that has invoice lines at the top
g
@michoel you got me confused. 😂 so what you're saying is not using
<pbr>
tag? if you're pertaining to all the pages with item lines on it, then yes, you're correct that we cannot control to have the footer only on the last page with item lines on it.