public static void dwgConvertDxf(){
String dataDir = “D:\work\learn\cad\gx\”;
String inputFile = dataDir+ “test.dwg”;
String outFile = dataDir+ “tets.dxf”;
CadImage cadImage = (CadImage)Image.load(inputFile);
for(Object style : cadImage.getStyles())//
{
// Set the font name Arial
((com.aspose.cad.fileformats.cad.cadtables.CadStyleTableObject)style).setPrimaryFontName(“simsun”);
}
cadImage.save(outFile);
}