For more details, please visit: Convert VSDM to PDF in Java
Last active
June 30, 2022 12:29
-
-
Save aspose-com-gists/abc013f750408df9d39f9e5478c500ba to your computer and use it in GitHub Desktop.
Convert VSDM Visio Diagram File to PDF in Java | 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.A_4); | |
// Set different options for rendering VSDM diagram to PDF | |
PdfSaveOptions options = new PdfSaveOptions(); | |
options.setPageSize(size); | |
options.setExportComments(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