Page numbers

0 votes
asked Nov 1, 2017 in Wanted features by Steve
If I place a header, or footer in my sequence diagram, and I use newpage to span pages for readability, I don't see a way to place a page number such that it is correct.  If I manually enter the page number in header or footer, only the last one is used for all pages.  Is there a way to enter a page number code in the header or footer such that it is displayed correctly or, barring that, to have a different header and footer per page so I can manually enter the page numbers?  I'd like to have a footer with "Page # of ##" ideally.

1 Answer

0 votes
answered Nov 3, 2017 by plantuml (143,890 points)
Best answer

Thanks for the suggestion, this is a good idea!
With last beta (beta16)

You can now have:
footer This is %page% of %lastpage%
Alice --> Bob : A1
Alice --> Bob : A2
Alice --> Bob : A3
Alice --> Bob : A4

This has not been widely tested, so do not hesitate to post here if you find issues.
Thanks again!

commented Nov 3, 2017 by Steve
So far, so good.  I'll let you know if I run into problems.