You can learn more details at: Convert DWG to SVG in Java
Last active
December 9, 2022 11:35
-
-
Save aspose-com-gists/585b3092809c8bf8e603d4b1623304f1 to your computer and use it in GitHub Desktop.
Convert DWG to SVG in Java
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 the input DWG file | |
Image image = Image.load("sample.dwg"); | |
// Initialize SvgOptions class object | |
imageoptions.SvgOptions options = new SvgOptions(); | |
// Set SVG color mode | |
options.setColorType(SvgColorMode.Grayscale); | |
options.setTextAsShapes(true); | |
// Save output SVG file | |
image.save("sample.svg" , options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You may request a Free Evaluation License to use this code without any limitations on your end.