Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active March 30, 2022 08:30
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/85c81d961a54a5c4445abc0b88e44735 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/85c81d961a54a5c4445abc0b88e44735 to your computer and use it in GitHub Desktop.
Convert Visio VSD VSDX Diagram to XAML in Java
// Load input Visio diagram
Diagram diagram = new Diagram("Input.vsd");
// Create an instance of XAMLSaveOptions class
XAMLSaveOptions options = new XAMLSaveOptions();
options.setSaveFormat(SaveFileFormat.XAML);
// Save the output XAML file
diagram.save("output.xaml", options);
// Load input Visio diagram
Diagram diagram = new Diagram("Input.vsdx");
// Create an instance of XAMLSaveOptions class
XAMLSaveOptions options = new XAMLSaveOptions();
options.setSaveFormat(SaveFileFormat.XAML);
// Save the output XAML file
diagram.save("output.xaml", options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment