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

Free Support Forum - aspose.com

Vsd file convert to pdf- stop at the save method for a long time

I converted a .vsd file to pdf. But it stop at save for two days, I have to shut it down. I have never convert a vsd file to pdf successful.


public Stream Convert(Stream inputStream)
var outputStream = new MemoryStream();
using (var middleStream = new MemoryStream())
inputStream.Seek(0, SeekOrigin.Begin);
middleStream.Seek(0, SeekOrigin.Begin);
var diagram = new Diagram(middleStream);
diagram.Save(outputStream, SaveFileFormat.PDF);
outputStream.Seek(0, SeekOrigin.Begin);
catch (Exception e)
throw new Exception(String.Format(“An error occurred when convert diagram to pdf. Exception :{0}”, e));
return outputStream;

It stopped at diagram.Save(outputStream, SaveFileFormat.PDF).

Hi Louis,

Thank you for contacting support. We have tested your Visio diagram and code against the latest version 6.2.0 of Aspose.Diagram for .NET API. We’re unable to notice any delay while saving to the stream object. Please download and use the latest version 6.2.0 and let us know how that goes on your side.