Free Support Forum -

Missing content in the EMF converted from the VSDX

Please take a look at this code snippet written in Java:

import com.aspose.diagram.Diagram;
import com.aspose.diagram.SaveFileFormat;

public static void main(String[] args)
    String visioPath = "Microsoft_Visio_Drawing.vsdx";
    String emfPath = "Microsoft_Visio_Drawing.emf";

    try(ByteArrayOutputStream baos = new ByteArrayOutputStream())
        Diagram diagram = new Diagram(visioPath);, SaveFileFormat.EMF);
        FileUtils.writeByteArrayToFile(new File(emfPath), baos.toByteArray());
    catch (Exception e)

The code converts following VSDX file: (333.5 KB)
There is some missing content in the EMF target file: (223.2 KB)

expected.png (97.6 KB)

actual.png (24.5 KB)


We were able to reproduce the issue at our end while using Aspose.Diagram for Java 21.4. Therefore, an issue as DIAGRAMJAVA-50721 has been logged in our issue tracking system for the sake of correction. We will look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as DIAGRAMJAVA-50721) have been fixed in this update. This message was posted using Bugs notification tool by philip.zhou