Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active March 16, 2022 08:18
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/92ca57168ec9b4bbc9618fca4ac6c6f8 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/92ca57168ec9b4bbc9618fca4ac6c6f8 to your computer and use it in GitHub Desktop.
Convert DWG to DWF in Java
// Load the input DWG file
Image image = Image.load("sample.dwg");
// Cast the Image class object to CadImage type
CadImage cad = (CadImage)image;
// Save output DWF CAD file
cad.save("sample.dwf");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment