Sunday 3 September 2023

How to Split a PlantUML Diagram into Multiple Images?

page (hpages)x(vpages) command split the image into multiple pages.

 

hpages: Specifies number of horizontal pages

vpages: Specifies number of vertical pages.

 

splitDiagramIntoPages.txt

@startuml

	page 2x2

	skinparam pageMargin 10
	skinparam pageExternalColor gray
	skinparam pageBorderColor black

	package "java.lang" #lightblue {
		interface Appendable
		interface AutoCloseable
		interface Cloneable

		class Boolean
		class System
		class Object

		Object <|-- Boolean
		Object <|-- System

	}

	package "java.util" #F0F0F0{
		interface Collection<E>
		interface List<E>

		class ArrayList<E> implements List
		Object <|-- ArrayList
	}
	
@enduml

 

Above snippet generate 4 image files.

 

splitDiagramIntoPages.png   



splitDiagramIntoPages_001.png


 

splitDiagramIntoPages_002.png


 


splitDiagramIntoPages_003.png


 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment