Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active December 23, 2021 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/3c720043875ebf20c12d0755e2fd80a5 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/3c720043875ebf20c12d0755e2fd80a5 to your computer and use it in GitHub Desktop.
Convert Visio VSDX VSD Diagram to HTML or SVG using Java
// Load input Visio file (VSD/VSDX) using Diagram class.
Diagram diagram = new Diagram("ExportToHTML.vsdx");
// Convert Visio VSDX or VSD to HTML webpage.
diagram.save("outputVSDtoHTML.html", SaveFileFormat.HTML);
// Load input Visio file (VSD/VSDX) using Diagram class.
Diagram diagram = new Diagram("ExportToSVG.vsdx");
// Convert Visio VSDX or VSD to SVG image.
diagram.save("outputVSDtoSVG.svg", SaveFileFormat.SVG);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment