You only need a footer on the last page?
# advancedpdf
e
You only need a footer on the last page?
j
@erictgrubaugh Actually it depends, if the PDF has only 1 page, then footer should on the first page, if it has 2 or three pages, then it should be on the last page.
m
If the pdf only has one page then the first page is the last page
c
@Joseph Gellidon yeah this was a bit of an annoying one, only being able to include the footer on every page or not at all. We ended up just including the subtotal, tax and total value in the body of the invoice - looks awful. I think you could potentially add an extra page and force the footer on that page but then it means you have 2 pages minimum for each invoice - lame. Would be interested to hear if anyone managed to figure out a decent solution in freemarker.
m
Advanced PDFs will allow you to have content which will only appear on the final page, however, you can't get it into the footer. This is simply because Freemarker doesn't deal with the pagination, BFO handles this. I just put the totals on the last page at the bottom of the list, it's not perfect, but if styled well it can look OK.
e
If you basically only need the footer at the end of the content, then just put te footer content at the end of the PDF template; forget using an actual footer since it's every page or no pages
👍 1
s
This is the template I use it puts a remittance slip at the bottom of only the first page maybe you can mess with it. https://github.com/bangordailynews/netsuite/blob/master/fisc-scanline/custom-invoice-pdf-template.html
j
Thanks @erictgrubaugh @michoel @Chiu @markderrick @suitemike Thanks for your inputs. I guess there's no way around it yet but to not really use an actual footer macro. @suitemike I'll check your codes and TIA!