Save vsdx to svg format it shown exception


#1

@asad.ali,

While saving the ‘. VSDX’ file to '. SVG it will show the exception like below.

Aspose.Diagram.DiagramException: ImageSaveOptions save format can be TIFF, PNG, BMP, EMF or JPEG only.

Sample Code:

                string[] files = Directory.GetFiles(strInputPath, "*.vsdx");
		foreach(string strFile in files)
		{
			Diagram vdxDiagram = new Diagram(strFile);
			vdxDiagram.RemoveHiddenInformation((int) (RemoveHiddenInfoItem.Masters | RemoveHiddenInfoItem.PersonalInfo | RemoveHiddenInfoItem.Shapes | RemoveHiddenInfoItem.Styles));
			ImageSaveOptions opt = new ImageSaveOptions(SaveFileFormat.SVG)
			                       {
				                       SmoothingMode = SmoothingMode.HighQuality,
				                       CompositingQuality = CompositingQuality.HighQuality,
				                       InterpolationMode = InterpolationMode.HighQualityBicubic,
				                       PixelOffsetMode = PixelOffsetMode.HighQuality
			                       };
			vdxDiagram.Save(strOutputPath + Path.GetFileNameWithoutExtension(strFile)+".svg", opt);
		}

Visio File: Background_Missing_Old.zip (100.3 KB)

Please support us,

Thanks


#2

@msindia

We have logged an issue as DIAGRAMNET-51685 in our issue tracking system for further investigation. We will look into details of it and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.