Number of pages

I have a writer document. This document is a template that I am using as an invoice, a tool that can work with ODT files and convert it into pdf file.
This document is in a section footer.
I just want this section is displayed when:

  • The document only has one page.
  • If the document has more than one page, the section is displayed on the last page.

I have already tried many options, I created a macro that hides and shows the section, but when I do the shows on every page.

Someone can give me a clue as to where I can continue?

This is interesting. Ideally, you would like a “Last Page” page style to complement the “First Page” page style, but that’s not available and I can’t see how to set it up.

There is a solution for “last-page only content” using a frame - worth looking at, but I don’t know if that will meet your needs.