page (hpages)x(vpages) and multiple diagrams in source file

0 votes
asked Mar 29 in bug by Chris38 (390 points)
When several diagrams are in the same text file (e.g. f.txt), the output file for the first diagram is named f.png. Subsequent output files are named f_001.png, f_002.png etc...

If the first diagram is split on several pages, using the page(hpages)x(vpages), the first page will be in f.png (consistent with name of first diagram) but the second page will in f_001.png, and the second diagram will also be in f_001.png. The viewer shows the same twice, but the diagram content is the same (it's the second diagram).

The workaround I have is to create a first diagram with a title only, thus generating an otherwise useless f.png

Example to reproduce the issue: have the following text in the same text file:

@startuml

  page 1x2

  title diagram 1

@enduml

@startuml

  title diagram 2

@enduml

1 Answer

+1 vote
answered Mar 29 by plantuml (134,570 points)
selected Mar 29 by Chris38
 
Best answer
Thanks for the feedback.

This should be ok in last beta:

https://www.dropbox.com/s/koo42q3d9gxw288/plantuml.jar?dl=0

Tell us if it's not the case,

Thanks again for all your tests, it really helps to improve PlantUML quality!
...