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

Free Support Forum - aspose.com

Vss convert to pdf throw exception

Exception Information:

An error occurred when convert diagram to pdf. Exception :Aspose.Diagram.DiagramException: The page number ‘0’ is out of range.
at . (Stream , PdfSaveOptions , Diagram )
at Aspose.Diagram.Diagram.Save(Stream stream, SaveOptions options)
at Aspose.Diagram.Diagram.Save(Stream stream, SaveFileFormat format)
at vCloud.Util.DiagramToPdfConvertorBase.Convert(Stream inputStream) in D:\WorkCopy\code\vCloud\vCloud.Util.Aspose\FileFormat\Convertor\PdfConvertorBase\DiagramToPdfConvertorBase.cs:line 30

Hi Ting,

Thank you for contacting support. Please give us your source Visio file for testing purposes. We’ll investigate and reply you appropriately. You can prepare an archive (ZIP) of the source Visio file before attaching it to your post. Your response is awaited.

Hi Ting,

Thank you for supplying a sample VSS. We managed to replicate the said error message at our end. We have logged this problem under ticket id DIAGRAMNET-50778 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 caused.

Hi Ting,

Thank you for being patient. Please note that Aspose.Diagram API does not support old Visio versions less than 11. The version of your input Visio file is 6.0. This feature has less priority because of the limited requests. Its support could take longer than usual. As a workaround, please open and save your Visio file using Microsoft Office Visio 2003 or higher.

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