We had licensed version Aspose.Imageing 17.9 in java. Using this version attached wmf file not converting proper in png. Getting opt png file as blank.
Also we tried with latest version Aspose.imaging 22.12 in java, there also we are not getting expected out.
Input put and out put file enclosed here in zip format. image.zip (922 Bytes)
code :
public void convertWMFToPNG(File wmfFile,File pngFile) {
try (Image image = Image.load(wmfFile.getAbsolutePath()))
{
PngOptions imageOptions = new PngOptions();
WmfRasterizationOptions rasterizationOptions = new WmfRasterizationOptions();
rasterizationOptions.setPageWidth(image.getWidth());
rasterizationOptions.setPageHeight(image.getHeight());
imageOptions.setVectorRasterizationOptions(rasterizationOptions);
image.save(pngFile.getAbsolutePath(), imageOptions);
}
}
Please guide solution for that.