qjebbs/vscode-plantuml

Can't export to HTML and PDF

zoulja opened this issue ยท 1 comments

Win7X64, VS Code 1.27.2, vscode-plantuml 2.9.4
By some reason export to HTML and PDF doesn't work for me.
I use default settings (I believe it means local render)
HTML

Error found in diagram X
java.lang.UnsupportedOperationException: HTML
at net.sourceforge.plantuml.ugraphic.ImageBuilder.createUGraphic(ImageBuilder.java:390)
at net.sourceforge.plantuml.ugraphic.ImageBuilder.writeImageInternal(ImageBuilder.java:236)
at net.sourceforge.plantuml.ugraphic.ImageBuilder.writeImageTOBEMOVED(ImageBuilder.java:177)
at net.sourceforge.plantuml.sequencediagram.graphic.SequenceDiagramFileMakerPuma2.createOne(SequenceDiagramFileMakerPuma2.java:234)
at net.sourceforge.plantuml.sequencediagram.SequenceDiagram.exportDiagramInternal(SequenceDiagram.java:249)
at net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(UmlDiagram.java:231)
at net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:135)
at net.sourceforge.plantuml.SourceStringReader.outputImage(SourceStringReader.java:154)
at net.sourceforge.plantuml.Pipe.managePipe(Pipe.java:100)
at net.sourceforge.plantuml.Run.managePipe(Run.java:290)
at net.sourceforge.plantuml.Run.main(Run.java:141)
Exception in thread "main" java.lang.UnsupportedOperationException: HTML
at net.sourceforge.plantuml.ugraphic.ImageBuilder.createUGraphic(ImageBuilder.java:390)
at net.sourceforge.plantuml.ugraphic.ImageBuilder.writeImageInternal(ImageBuilder.java:236)
at net.sourceforge.plantuml.ugraphic.ImageBuilder.writeImageTOBEMOVED(ImageBuilder.java:177)
at net.sourceforge.plantuml.UmlDiagram.exportDiagramError(UmlDiagram.java:284)
at net.sourceforge.plantuml.UmlDiagram.exportDiagramError(UmlDiagram.java:246)
at net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(UmlDiagram.java:239)
at net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:135)
at net.sourceforge.plantuml.SourceStringReader.outputImage(SourceStringReader.java:154)
at net.sourceforge.plantuml.Pipe.managePipe(Pipe.java:100)
at net.sourceforge.plantuml.Run.managePipe(Run.java:290)
at net.sourceforge.plantuml.Run.main(Run.java:141)

Since it doesn't work so I'm not sure what kind of HTML is expected here.
Actually for my needs single file with embedded SVG would be optimal choice

PDF

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:53)
at net.sourceforge.plantuml.UmlDiagram.exportDiagramInternalPdf(UmlDiagram.java:366)
at net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(UmlDiagram.java:227)
at net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:135)
at net.sourceforge.plantuml.SourceStringReader.outputImage(SourceStringReader.java:154)
at net.sourceforge.plantuml.Pipe.managePipe(Pipe.java:100)
at net.sourceforge.plantuml.Run.managePipe(Run.java:290)
at net.sourceforge.plantuml.Run.main(Run.java:141)
Exception in thread "main" java.lang.UnsupportedOperationException
at net.sourceforge.plantuml.pdf.PdfConverter.convert(PdfConverter.java:72)
at net.sourceforge.plantuml.UmlDiagram.exportDiagramInternalPdf(UmlDiagram.java:366)
at net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(UmlDiagram.java:227)
at net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:135)
at net.sourceforge.plantuml.SourceStringReader.outputImage(SourceStringReader.java:154)
at net.sourceforge.plantuml.Pipe.managePipe(Pipe.java:100)
at net.sourceforge.plantuml.Run.managePipe(Run.java:290)
at net.sourceforge.plantuml.Run.main(Run.java:141)

It's out the scope of this extension development.

For PDF, you should use custom jar, together with many dependency jars. See http://plantuml.com/pdf
For HTML, you'd better search by yourself, or send feedbacks to http://forum.plantuml.net/