Last active
April 7, 2021 05:41
-
-
Save conholdate-gists/9748954ecb8a030999ccf7862c2d28ec to your computer and use it in GitHub Desktop.
Render Visio supported VSSD, VSDX and VSTX files in HTML, PDF and Image formats using GroupDocs.Viewer for Java API
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
Render Visio Files in other formats using Java | |
1. Render Visio (.vsdx) to JPG | |
2. Render Visio (.vsdx) to PNG | |
3. Render Visio (.vstx) to PDF | |
4. Render Visio (.vssx) to 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
try (Viewer viewer = new Viewer("C:\\Files\\sample_network.vsdx")) { | |
JpgViewOptions jpgOptions = new JpgViewOptions("C:\\Files\\Output\\output.jpg"); | |
viewer.view(jpgOptions); | |
} |
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
try (Viewer viewer = new Viewer("C:\\Files\\sample_block.vsdx")){ | |
PngViewOptions options = new PngViewOptions("C:\\Files\\Output\\output.png"); | |
viewer.view(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
try (Viewer viewer = new Viewer("C:\\Files\\sample.vssx")) { | |
HtmlViewOptions options = HtmlViewOptions.forEmbeddedResources("C:\\Files\\Output\\output.html"); | |
viewer.view(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
try (Viewer viewer = new Viewer("C:\\Files\\sample_organization.vstx")){ | |
PdfViewOptions options = new PdfViewOptions("C:\\Files\\Output\\output.pdf"); | |
viewer.view(options); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment