Hi,
I’m using Aspose Diagram 21.11 for .NET on my CentOS 7 machine but have an issue when converting visio file to jpg.
On Windows, visio file can convert successful to jpg without error. But on Linux, an object inside visio file can’t be rendered.
Source code:
var diagram = new Diagram(inFile);
var opts = new Aspose.Diagram.Saving.ImageSaveOptions(SaveFileFormat.Jpeg)
{SameAsPdfConversionArea = true};
for(int i = 0; i < diagram.Pages.Count; i++)
{
string pageName = “Diagram_” + (i + 1) + “.jpg”;
opts.PageIndex = i;
diagram.Save(pageName, opts);
}
The object is in image 2. Here is the visio file and output on Windows & Linux: sample.zip (1.6 MB)
Please help me check this issue.
Thank you.