Wmf to png

ASPOSE is useful for me.But there is a big X in the whole pic like this

How can I remove the whole-view-x.Need I buy it?
Hi Zhe,

Thank you for your inquiry.

Please provide us the sample WMF file and code snippet that you are using at your end. We will try to reproduce the issue at our end and will update accordingly.

The wmf file I got from a docx parsed by POI.

The wmf file shows like in windows mspaint.
My code:

import com.aspose.imaging.Color;
import com.aspose.imaging.Image;
import com.aspose.imaging.fileformats.wmf.WmfImage;
import com.aspose.imaging.imageoptions.EmfRasterizationOptions;
import com.aspose.imaging.imageoptions.PngOptions;
public class ImgConverter {
public static void convert(String wmfPath){
String pngPath = wmfPath.replace(“wmf”, “png”);
Image image = WmfImage.load(wmfPath);
EmfRasterizationOptions emf = new EmfRasterizationOptions();
emf.setPageHeight(image.getHeight());
emf.setPageWidth(image.getWidth());
emf.setBackgroundColor(Color.getWhite());
PngOptions options = new PngOptions();
options.setVectorRasterizationOptions(emf);
image.save(pngPath, options);
// image.save(pngPath, new PngOptions());
}
}
It is the same as using "image.save(pngPath, new PngOptions());"
I am using maven。
pom.xml:
AsposeJavaAPI
Aspose Java API
http:// maven.aspose.com/artifactory/simple/ext-release-local/
com.aspose
aspose-imaging
3.9.0
jdk16

Hi Zhe,

Thank you for sharing sample with us.

We have tried to regenerate the issue at our end. Initial investigation shows that the issue persists. The issue has been logged into our system with ID IMAGINGJAVA-575. Our product team will further look into it. We will update with the progress via this forum thread.

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.