use of org.apache.poi.xdgf.usermodel.shape.ShapeDebuggerRenderer 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);
}
Aggregations