Monday, 23 January 2023

PlantUML: Split the diagram into multiple images

‘newpage’ keyword split the diagram into multiple images.

 

Syntax 1

newpage

 

Syntax 2

newpage newPageTitle

 

newPage.txt

@startuml

title "newpage keyword demo"
header "Demo App"
footer %page% of %lastpage%

p1 -> p2 : msg1
p1 -> p2 : msg2
p1 -> p2 : msg3

newpage
p1 -> p2 : msg4
p1 -> p2 : msg5
p1 -> p2 : msg6

newpage "This is last page"
p1 -> p2 : msg7
p1 -> p2 : msg8
p1 -> p2 : msg9

@enduml

 

Above snippet generate three image files.

 

1.   newPage.png      

2.   newPage_001.png       

3.   newPage_002.png

 

newPage.png

 


 

newPage_001.png


 



newPage_002.png


 

Previous                                                    Next                                                    Home

No comments:

Post a Comment