For more details, please visit: Convert VSDM to PDF in C#
Last active
June 30, 2022 12:26
-
-
Save aspose-com-gists/fb92aac6f9d0021848d24f423c72fa78 to your computer and use it in GitHub Desktop.
Convert VSDM Visio Diagram File to PDF in C# .NET | VSDM Converter
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
// Load input VSDM file | |
Diagram diagram = new Diagram("input.vsdm"); | |
// Set page size for the output PDF | |
PageSize size = new PageSize(PaperSizeFormat.A4); | |
// Set different options for rendering VSDM diagram to PDF | |
PdfSaveOptions options = new PdfSaveOptions(); | |
options.PageSize = size; | |
options.IsExportComments = true; | |
// Save output PDF file | |
diagram.Save("output.pdf", 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
// Load input VSDM file | |
Diagram diagram = new Diagram("Input.vsdm"); | |
// Save output PDF file | |
diagram.Save("output.pdf", SaveFileFormat.PDF); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment