Hi,
We are having some issues when we convert a visio diagram into a picture : if the diagram is very large, it inserts a big margin on the left…
The generated picture is useless like this. Is there an issue with our Visio diagram ?
See the attached Visio diagram and the converted picture.
The code we are using for the conversion is pretty simple and out of the box:
var fs = new FileStream(visioFileName, FileMode.Open, FileAccess.Read, FileShare.Read);
using (var sr = new StreamReader(fs))
{
Aspose.Diagram.Diagram diagram = new Aspose.Diagram.Diagram(sr.BaseStream);
Aspose.Diagram.Saving.ImageSaveOptions options = new Aspose.Diagram.Saving.ImageSaveOptions(Aspose.Diagram.SaveFileFormat.JPEG);
options.PageIndex = 0;
diagram.Save(imageFileName, options);
}
Thank you,
Pascal