I tried converting EMF file using aspose imaging using various code examples provided by Aspose forums. But all are exporting empty image.
images.zip (4.6 KB)
String filePath = "C:\\Projects\\gdcp\\Picture1.emf"; License license = new License(); license.setLicense(ASPOSE_LICENSE); EmfMetafileImage metafile = new EmfMetafileImage(filePath); metafile.setBackgroundColor(Color.getWhiteSmoke()); metafile.save("C:\\Projects\\gdcp\\Picture1.png", new PngOptions()); metafile.close();
Above is one of the sample code, i have tried many other options but none are working.
Kindly help me in fixing this.