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

Free Support Forum - aspose.com

Layout issue when converting a visio diagram into a picture


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,

Hi Pascal,

Thank you for contacting support. We have tested your Visio diagram against the latest version 6.1.0 of Aspose.Diagram for .NET API and managed to replicate the problem of empty margin on the left side of the output JPEG file. We have logged this problem under ticket id DIAGRAMNET-50721 in our bug tracking system. Your post has also been linked to this ticket. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience.

Hi Pascal,

Thank you for being patient. We have a good news for you that the issue id DIAGRAMNET-50721 has now been resolved. If there is no issue in the QA phase, then this fix will be included in the next version of Aspose.Diagram for .NET 6.2.0. We’ll inform you via this forum thread as soon as the new release is published.

The issues you have found earlier (filed as DIAGRAMNET-50721) have been fixed in Aspose.Diagram for .NET 6.2.0.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.