Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active June 30, 2022 12:26
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/fb92aac6f9d0021848d24f423c72fa78 to your computer and use it in GitHub Desktop.
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
// 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);
// 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