Is there any way for me to fix a container at the end of a PDF, regardless of how many pages are generated?
Use the Widget Tree view if you're having trouble placing a Container exactly where you want.
The Widget Tree gives you a hierarchical view of every widget present on a screen.
In your case, place the container just above the Footer container.
Example:
Hi Nhojimar.
With Ultimate PDF version 11.0.0, it's now possible to place a container at the bottom of the last page of the PDF.
For that, all you need to do is use flex-grow: 1 on a container before the last container inside MainContent. That container will grow until there's no leftover space available in the page, thus pushing the last block to the bottom of the last page.
The solution above no longer works, but on 11.0.1 there's a new placeholder called BottomContent, and content placed inside of it will render at the bottom of the last page.