Free Support Forum - aspose.com

Issue with saving emf file

Hi there,
I found an issue while working with emf files, in aspose-imaging 20.9. When loading a file, and saving the same file again, there is a big difference with the fonts of the two files. As you can see in the Screenshot below.
The original emf file on the left, and the saved one on the right: difference.png (34.6 KB)

Here is a zip archive with the two files: imaging.zip (10.8 KB)

I’m using this code to open and save the file:

    com.aspose.imaging.fileformats.emf.EmfImage emfImage = (com.aspose.imaging.fileformats.emf.EmfImage) com.aspose.imaging.Image.load(emfFilePath);
            try{
                emfImage.save("saved.emf");
            }finally {
                emfImage.dispose();
            }

I included the fonts folder like this:

FontSettings.addFontsFolder("C:\\Users\\Path\\to\\Font\\Folder");

Any help would be appreciated,
Clemens

@ClemensMeier

Can you please try using latest Aspose.Imaging for Java 21.5 on your end and share if there is any issue incurring on your end.

Hi,
I tried with version 21.5 and it has the same issue with the saved file.

@ClemensMeier

I have created an issue with ID IMAGINGJAVA-7822 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.