In the example link that I have shared, its evident that SVG content is added as string. If you have file as SVG, you can read the file and convert to string. If you have a SVG string, you can directly add that in presentation Image collection.
When i use that way to add svg to the slide and then convert that image to a group Shape like in your documentation:
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_PresentationSaving();
using (Presentation pres = new Presentation(dataDir+ "image.pptx"))
PictureFrame pFrame = pres.Slides.Shapes as PictureFrame;
ISvgImage svgImage = pFrame.PictureFormat.Picture.Image.SvgImage;
if (svgImage != null)
// Convert svg image into group of shapes
IGroupShape groupShape = pres.Slides.Shapes.AddGroupShape(svgImage, pFrame.Frame.X, pFrame.Frame.Y,
// remove source svg image from presentation
pres.Save(dataDir + "image_group.pptx", SaveFormat.Pptx);
All texts are gone and missing that exists in the svg image… that’s my problem !
Powerpoint not remove texts by convert it to shapes like my example from above.
Here is a picture of the missing texts:
missing.png (31.7 KB)
Hope you can help me or create a ticket for it ?