SVG image raises java.lang.UnsupportedOperationException for output type EPS

0 votes
asked May 22 in Bug by schnitzelbub (120 points)

I have been using PlantUML in conjunction with Sphinx for quite a while now, which worked great thus far. Thanks a lot for this awesome tool!

Unfortunately I am having trouble with the PDF generation, though. The trigger seems to be referenced SVG images. I narrowed it down to the EPS output format being the culprit here. When generating via:

java -Djava.awt.headless=true -jar plantuml.jar -teps issue.puml

I get this exception:

java.lang.UnsupportedOperationException: class net.sourceforge.plantuml.ugraphic.UImageSvg class net.sourceforge.plantuml.ugraphic.eps.UGraphicEps at net.sourceforge.plantuml.ugraphic.AbstractUGraphic.draw( at ...

Switching to output format SVG via:

java -Djava.awt.headless=true -jar plantuml.jar -tsvg issue.puml

works fine though!

The diagram used to trigger this exception looks like this:


svg : <img:drawing.svg>
png : <img:drawing.png>

png -up-|> svg: SVG <img:drawing.svg> expected
png <|-up-- svg: PNG <img:drawing.png> expected


Any ideas how to solve the issue?


P.S.: the test images (PNG and SVG) are these:

(can't really attach files here!?)

commented Jun 7 by schnitzelbub (120 points)

I retried with PlantUML 1.2020.12 but unfortunately still to no avail.

Any hint really appreciated!

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.