pdf generation fails when 'activate' is used after 'newpage'

0 votes
asked Feb 9, 2015 in Bug by markus (120 points)

Trying to create 2 pages of pdf with the following code fails:

@startuml

 

title Page One

actor A

actor B

 

newpage

 

A -> B : simple activity

activate A

deactivate A

B -> A : end of it

 

@enduml

 
with the following exception:

 

java -jar  ../plantumlPDF/plantuml.jar -Sshadowing=false  -tpdf TestNewPage.plantuml 

About to transcoder source of type: org.apache.batik.apps.rasterizer.SVGConverterFileSource

org.apache.batik.bridge.BridgeException: file:/var/folders/s_/lz3vjncd0dx9rvnj0n63c_gr0000gn/T/pdf9158609723101651096.svf:-1

The attribute "height" of the element <rect> cannot be negative

at org.apache.batik.bridge.SVGRectElementBridge.buildShape(Unknown Source)

 
 
Upon either commenting out 'newpage' or 'activate ..deactivate' , pdf generation works.
 
I used 'plantumlPDF.zip'  which is linked here to a dropbox. Also tried to replace plantuml.jar with a newer version
(8020beta3)
 
 

1 Answer

+1 vote
answered Feb 9, 2015 by plantuml (298,440 points)
Thanks for the report.

This should be ok with the last beta:
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Very few tests have been done, so feedback welcome!

Thanks again!
...