closed PDF export does not work anymore with VS Code

0 votes
asked Nov 22 in Question / help by anonymous
closed Nov 22
Hi,

I'm using PlantUML in VS Code and usually I export my diagrams as pdf. For that I did the setup as described here: https://plantuml.com/de/pdf

Since today it does not work anymore. I'm getting the errors I've posted below. Since I already recognized, that for some reason the jar-files were deleted in the plantuml-jar-folder, I already copied them there again. This happend before (I think after Windows Update?), but after copying the files to the folder, everything worked fine again.
I also disabled shadowing (which wasn't an issue before).

The svg export works fine... So I guess the problem is with PdfConverter.java? Can anyone help me to solve that?
Thank you very much in advance!

I get the following errors:
java.lang.ClassNotFoundException: org.apache.batik.apps.rasterizer.SVGConverter
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at net.sourceforge.plantuml.pdf.PdfConverter.convert(PdfConverter.java:57)
    at net.sourceforge.plantuml.UmlDiagram.exportDiagramInternalPdf(UmlDiagram.java:288)
    at net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(UmlDiagram.java:139)
    at net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:177)
    at net.sourceforge.plantuml.SourceStringReader.outputImage(SourceStringReader.java:163)
    at net.sourceforge.plantuml.Pipe.generateDiagram(Pipe.java:100)
    at net.sourceforge.plantuml.Pipe.managePipe(Pipe.java:92)
    at net.sourceforge.plantuml.Run.managePipe(Run.java:355)
    at net.sourceforge.plantuml.Run.main(Run.java:182)
Exception in thread "main" java.lang.UnsupportedOperationException
    at net.sourceforge.plantuml.pdf.PdfConverter.convert(PdfConverter.java:76)
    at net.sourceforge.plantuml.UmlDiagram.exportDiagramInternalPdf(UmlDiagram.java:288)
    at net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(UmlDiagram.java:139)
    at net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:177)
    at net.sourceforge.plantuml.SourceStringReader.outputImage(SourceStringReader.java:163)
    at net.sourceforge.plantuml.Pipe.generateDiagram(Pipe.java:100)
    at net.sourceforge.plantuml.Pipe.managePipe(Pipe.java:92)
    at net.sourceforge.plantuml.Run.managePipe(Run.java:355)
    at net.sourceforge.plantuml.Run.main(Run.java:182)
closed with the note: Solution provided

1 Answer

0 votes
answered Nov 22 by plantuml (262,940 points)
 
Best answer

Could you try last snapshot and tell us the result.

Thanks!

commented Nov 22 by anonymous
Wow, thanks for your quick response! With the snapshot, it works again.

Thank you very much!
...