SO19
SO19

Reputation: 115

Aspose slide include svg into ppt slide

Does Aspose slide include svg into ppt slide? Is there way using slide api to do this? Any snippet would be good for reference.

Upvotes: 0

Views: 508

Answers (2)

Mudassir
Mudassir

Reputation: 433

I suggest you to please try using following sample code on your end using latest Aspose.slides for .NET 17.12.

string dataDir = RunExamples.GetDataDir_PresentationProperties();
using (var pres = new Presentation())
{
    var svgContent = File.ReadAllText(svgPath);
    var emfImage = p.Images.AddFromSvg(svgContent);
    pres.Slides[0].Shapes.AddPictureFrame(ShapeType.Rectangle, 0, 0, emfImage.Width, emfImage.Height, emfImage);
    pres.Save(outPptxPath, SaveFormat.Pptx);
}

Upvotes: 1

Mudassir
Mudassir

Reputation: 433

I have observed your requirements and like to share that feature of adding SVG inside slide has been included in MS PowerPoint 2016. I regret to share that at present the requested support is unavailable in Aspose.Slides and an issue with ID SLIDESNET-39110 has been added to provide the requested support. This thread has been linked with the issue so that we may share notification with you once support will be available.

I am working as Support developer/ Evangelist at Aspose.

Many Thanks,

Upvotes: 1

Related Questions