Page numbers

0 votes
asked Nov 1 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 by plantuml (134,510 points)
 
Best answer

Thanks for the suggestion, this is a good idea!
With last beta (beta16) http://beta.plantuml.net/plantuml.jar

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

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

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