Hi Team,
I am trying to remove the Images from loaded ppt file. Unable to find the code to delete.
Thanks in advance for your support.
Here is my code.
Presentation ppt = new Presentation();
ppt.LoadFromStream(streamUrl, FileFormat.Pptx2013);
ISlide slide = ppt.Slides[0];
foreach (IShape shape in slide.Shapes)
{
if (shape is SlidePicture)
{
if (shape.AlternativeText == "image1")
{
//trying to code to remove image/picture
}
}
}
--//Any other ways also appreciated.
Thanks & Regards