We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Saving Visio files as emf results empty outputs on CentOS7

Hi teams,
We’re using Aspose.Diagram 21.9 in a .Net5.0 project, saving Visio files as emf results empty output on CentOS7:
using(var inStream = new FileStream(inFile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
{
var diagram = new Diagram(inStream);
var imageFormat = SaveFileFormat.EMF;
var opts = new Aspose.Diagram.Saving.ImageSaveOptions(imageFormat)
{ SameAsPdfConversionArea = true };
diagram.Save(outFile, opts);
}
Attached samples: samples.zip (158.7 KB)
Please help to fix the issue. Thanks.

@dunghnguyen

We have logged an issue as DIAGRAMNET-52298 in our issue tracking system to further investigate this case. We will surely work on resolving this and let you know as soon as it is rectified. Please be patient and spare us some time.

We are sorry for the inconvenience.

1 Like

@dunghnguyen

We have investigated the earlier logged ticket. Because the System.Drawing.Common library under Linux does not support drawing .emf pictures, we are sorry that we cannot support rendering .emf in Linux.

Thanks for your response.