Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active December 29, 2021 19:33
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/9e40a41c387b9e91fd8e5dcf4484ed5d to your computer and use it in GitHub Desktop.
Save aspose-com-gists/9e40a41c387b9e91fd8e5dcf4484ed5d to your computer and use it in GitHub Desktop.
Convert DWG to DXF Programmatically in Java
// Specify paths for input and output files.
String inputDWG = "sample.dwg";
String outputDXF = "sample.dxf";
// Load the input DWG file
Image cadImage = Image.load(inputDWG);
// Save output DXF file
cadImage.save(outputDXF);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment