jfxConverter-svg.jar
in addition to the jfxConverter.jar
. Note that the PowerPoint driver uses the Apache Batik library.
SVGDriverUtils
encapsulate the usage of the converter. for example: SVGDriverUtils svgUtils = new SVGDriverUtils(); svgUtils.convert(node, file);
SVGDriverUtils pptUtils = new SVGDriverUtils(); svgUtils.convert(node, file, true);
SVGDriverUtils svgUtils = new SVGDriverUtils(); svgUtils.convert(node, title, file);or:
SVGDriverUtils svgUtils = new SVGDriverUtils(); svgUtils.convert(node, title, file, true);
// create the Scene graph JFXInvoker invoker = JFXInvoker.getInstance(); invoker.invokeBlocking(new Runnable() { @Override public void run() { StackPane root = new StackPane(); Scene scene = new Scene(root, 300, 250); Stage stage = new Stage(); stage.setScene(scene); start(stage); Line line = new Line(0, 0, 200, 200); line.setStroke(Color.RED); root.getChildren().add(line); primaryStage.show(); } }); // perform the conversion SVGDriverUtils svgUtils = new SVGDriverUtils(); svgUtils.convert(node, file);
Copyright 2016-2018 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence