How to make multiple diagram in single page
newpage: The newpage keyword is used to split a diagram into several images.
@startuml
header SayHello
footer Page %page% of %lastpage%
Bob -> Alice : hello
newpage last page
Bob -> Mark : Hi
@enduml
Result:
Reference
You also could define a variable like "PAGE_SETTING" to decide whether on or off it.
@startuml
' seton demo
!define PAGE_SETTING newpage
header SayHello
footer Page %page% of %lastpage%
Bob -> Alice : hello
PAGE_SETTING
Bob -> Mark : Hi
@enduml
Result:
Reference:Macro definition