Spire.Presentation 10.3 supports saving images in master slides as SVG

Spire.Presentation 10.3 supports saving images in master slides as SVG

2025-02-28 09:37:14

We are delighted to announce the release of Spire.Presentation 10.3. This version supports saving images in master slides as SVG. It also enhances the conversion from shapes to SVG. Moreover, some known issues are fixed successfully in this version, such as the issue that the links to shapes and images in PowerPoint documents could not be obtained. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature SPIREPPT-2724 Supports saving images in master slides as SVG.
Presentation ppt = new Presentation();
ppt.LoadFromFile(inputFile);

int num = 1;
IMasterSlide masterSlide = ppt.Masters[0];
for (int i = 0; i < masterSlide.Shapes.Count; i++)
{
	IShape s = masterSlide.Shapes[i];
	if (s is SlidePicture)
	{
		SlidePicture ps = s as SlidePicture;
		byte[] svgByte = s.SaveAsSvgInSlide();
		FileStream fs = new FileStream(outputFile +num + ".svg", FileMode.Create);
		fs.Write(svgByte, 0, svgByte.Length);
		fs.Close();
		num++;
	}                
}
Bug SPIREPPT-2626 Fixes the issue that setting TextAutofitType.Shape did not take effect.
Bug SPIREPPT-2627 Fixes the issue that the effect of using Shapes.AppendShapeConnector was not correct.
Bug SPIREPPT-2706 Fixes the issue that the links of shapes and images in PowerPoint documents could not be obtained.
Bug SPIREPPT-2723 Fixes the issue that the program threw InvalidCastException when converting shapes to SVG.
Bug SPIREPPT-2726 Fixes the issue that the program threw "Property not found" when loading a PPTX document.
Click the link to download Spire.Presentation 10.3:
More information of Spire.Presentation new release or hotfix: