org.apache.poi.xdgf.util
Class VsdxToPng

java.lang.Object
  extended by org.apache.poi.xdgf.util.VsdxToPng

public class VsdxToPng
extends java.lang.Object

Converts a Visio diagram to a PNG file. As more elements and styles are added/supported the output will get better, but it's very rough right now.


Constructor Summary
VsdxToPng()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static void renderToPng(XDGFPage page, java.io.File outFile, double scale, ShapeRenderer renderer)
           
static void renderToPng(XDGFPage page, java.lang.String outFilename, double scale, ShapeRenderer renderer)
           
static void renderToPng(XmlVisioDocument document, java.lang.String outDirname, double scale, ShapeRenderer renderer)
           
static void renderToPngDir(XDGFPage page, java.io.File outDir, double scale, ShapeRenderer renderer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VsdxToPng

public VsdxToPng()
Method Detail

renderToPng

public static void renderToPng(XDGFPage page,
                               java.lang.String outFilename,
                               double scale,
                               ShapeRenderer renderer)
                        throws java.io.IOException
Throws:
java.io.IOException

renderToPngDir

public static void renderToPngDir(XDGFPage page,
                                  java.io.File outDir,
                                  double scale,
                                  ShapeRenderer renderer)
                           throws java.io.IOException
Throws:
java.io.IOException

renderToPng

public static void renderToPng(XDGFPage page,
                               java.io.File outFile,
                               double scale,
                               ShapeRenderer renderer)
                        throws java.io.IOException
Throws:
java.io.IOException

renderToPng

public static void renderToPng(XmlVisioDocument document,
                               java.lang.String outDirname,
                               double scale,
                               ShapeRenderer renderer)
                        throws java.io.IOException
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception