I've been stuck with this problem for a while now. The thing is I need to output "--- end of page ---" for remaining whitespace of every page.
Screenshot: The page content is generated dynamically.
I came up with this logic:
- getRemainingWidth() of each page
- then find the horizontal and vertical center from start point (bottom margin minus RemainingWidth) to bottom margin
- and output "end of page"
Anyone solved this before?
thanks!