Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active December 9, 2022 11:35
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/585b3092809c8bf8e603d4b1623304f1 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/585b3092809c8bf8e603d4b1623304f1 to your computer and use it in GitHub Desktop.
Convert DWG to SVG in Java
// 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);
@sai630125
Copy link

how to use this code freely

@farhan-raza
Copy link

You may request a Free Evaluation License to use this code without any limitations on your end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment