Search in sources :

Example 1 with ShapeRenderer

use of org.apache.poi.xdgf.usermodel.shape.ShapeRenderer in project poi by apache.

the class VsdxToPng method main.

public static void main(String[] args) throws Exception {
    if (args.length > 2) {
        System.err.println("Usage: [--debug] in.vsdx outdir");
        System.exit(1);
    }
    ShapeRenderer renderer = new ShapeRenderer();
    String inFilename = args[0];
    String pngDir = args[1];
    if (args[0].equals("--debug")) {
        inFilename = args[1];
        pngDir = args[2];
        renderer = new ShapeDebuggerRenderer();
    }
    XmlVisioDocument doc = new XmlVisioDocument(new FileInputStream(inFilename));
    renderToPng(doc, pngDir, 2000 / 11.0, renderer);
}
Also used : ShapeDebuggerRenderer(org.apache.poi.xdgf.usermodel.shape.ShapeDebuggerRenderer) XmlVisioDocument(org.apache.poi.xdgf.usermodel.XmlVisioDocument) ShapeRenderer(org.apache.poi.xdgf.usermodel.shape.ShapeRenderer)

Aggregations

XmlVisioDocument (org.apache.poi.xdgf.usermodel.XmlVisioDocument)1 ShapeDebuggerRenderer (org.apache.poi.xdgf.usermodel.shape.ShapeDebuggerRenderer)1 ShapeRenderer (org.apache.poi.xdgf.usermodel.shape.ShapeRenderer)1