Display blank when DXF is converted to png


#1

code:
LoadOptions loadOptions = new LoadOptions(); loadOptions.setSpecifiedEncoding(CodePages.SimpChinese); image = Image.load(sourceInputStream, loadOptions); IConvertFile pngFile = sourceFile.newConvertFile("png"); CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions(); rasterizationOptions.setDrawType(CadDrawTypeMode.UseObjectColor); rasterizationOptions.setBackgroundColor(Color.getBlack()); rasterizationOptions.setPageWidth(width); rasterizationOptions.setPageHeight(height); ImageOptionsBase options = new PngOptions(); options.setVectorRasterizationOptions(rasterizationOptions); image.save(pngFile.getOutputStream(), options);

123.dxf.zip (461.3 KB)


#2

@hongzq,

I have worked with file shared by you and have been able to observe issue. A ticket with ID CADJAVA-531 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with issue so that you may be automatically notified once issue will be fixed.