Created
May 13, 2020 16:32
-
-
Save aspose-com-gists/7ec04b775b208175a41a3c108a6587d1 to your computer and use it in GitHub Desktop.
Convert Visio Diagrams in Node.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var aspose = aspose || {}; | |
aspose.diagram = require("aspose.diagram"); | |
// Load Visio VSDX file | |
var diagram = new aspose.diagram.Diagram("sample.vsdx"); | |
// Save as HTML file format | |
diagram.save("Visio-to-HTML.html", aspose.diagram.SaveFileFormat.HTML); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var aspose = aspose || {}; | |
aspose.diagram = require("aspose.diagram"); | |
// Load Visio VSDX file | |
var diagram = new aspose.diagram.Diagram("sample.vsdx"); | |
// Save as PDF file format | |
diagram.save("Visio to PDF.pdf", aspose.diagram.SaveFileFormat.PDF); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var aspose = aspose || {}; | |
aspose.diagram = require("aspose.diagram"); | |
// Load Visio VSDX file | |
var diagram = new aspose.diagram.Diagram("sample.vsdx"); | |
// Set image options | |
options = new aspose.diagram.ImageSaveOptions(aspose.diagram.SaveFileFormat.PNG); | |
// Save one page only if you want to convert a particular page. | |
options.setPageIndex(0); | |
// Save as PNG file format | |
diagram.save("Visio to PNG.png", options); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var aspose = aspose || {}; | |
aspose.diagram = require("aspose.diagram") | |
// Load Visio VSDX file | |
var diagram = new aspose.diagram.Diagram("sample.vsdx"); | |
// Save as SVG file format | |
diagram.save("Visio-to-SVG.svg", aspose.diagram.SaveFileFormat.SVG); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var aspose = aspose || {}; | |
aspose.diagram = require("aspose.diagram"); | |
// Load Visio VSDX file | |
var diagram = new aspose.diagram.Diagram("sample.vsdx"); | |
// Save as XAML file format | |
diagram.save("Visio-to-XAML.xaml", aspose.diagram.SaveFileFormat.XAML); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment