Text looks bad in PNG image generated from WMF


Hi Aspose Team,

We are using aspose-imaging-2.9.0-jdk16.jar to read WMF images from Word and save as PNG.

The following is the code block that does this WMF to PNG conversion.
-------------------------------------------------------------------------------------
String inputPath ="C:\\Viswa\\TestUtilityProject\\resources\\input\\image1.wmf";
String outputPath = "1.png";
WmfMetafileImage metafile = new WmfMetafileImage(inputPath);
metafile.save(outputPath, new PngOptions());
-------------------------------------------------------------------------------------

But, vertically aligned text "Demand in CZK bn" in the generated png image looks bad and not properly aligned. The same text in the image looks good in Word.

I have attached the .docx file and the generated .png file.

Please note that I have tried with latest aspose-imaging-3.0.1-jdk16.jar and still encountering the same issue.

Please check and get back asap as this issue is very critical for our Business users.
Hi,

Thank you for your inquiry and providing us the details.

Please forward us the source WMF file that you used in MS Word document. This will help us to regenerate the issue at our end.

Please find attached image1.wmf.zip (please remove .zip)

Hi,

Thank you for writing us back along with sample image.

Please note that we have tried to reproduce the mentioned issue at our end while using the sample WMF file provided by you. It was found that the issue exists. It is destroying vertical text on Y-axis. The issue has been logged into our issue tracking system with ID IMAGING-35042. Our product team will further look into it and provide feedback. We will update you accordingly.

We are very sorry for the inconvenience caused.

Hi,

This is to update you that we have looked further into the issue. If you try Microsoft Paint and convert your WMF file to PNG the output file will be identical to the one generated by using Aspose.Imaging API. .NET Metafile class and MS Paint convert your WMF file to PNG format in the same way. So it is not a bug.

Hi Ikram,


Good day.

Yes, if we open that WMF with paint directly, text format looks bad.
But if we create a new word and drag this WMF into it, text format is good.

So seems paint has bug either, do you have any other idea.
Or if this is microsoft bug, can you please push them to solve.

Million thanks,
Stone
Hi Stone,

Thank you for writing us back.

We have requested our product team to further look into this issue and try to fix the issue even if MS paint produces the same faulty results. We will update you accordingly via this thread.

Feel free to contact us in case of further query or comments.

Hi Stone,

Thank you for your patience.

This is to update you that our product team needs some more sample file like the one provided by you (image1.wmf) to carry on the investigation process. It would be a help. Furthermore please forward us the information on how the sample file (image1.wmf) was created? Which tool had been used?

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