I want to get the picture with the bmw car.
Couple of notes - I cannot manually change the names of the shapes. I'm guessing the only way is to find duplicate names and programmatically change the names?
Here's the same code I currently use.
- Code: Select all
Presentation PPT = new Presentation();
PPT.LoadFromFile("Input.pptx");
foreach (IShape s in PPT.Slides[0].Shapes)
{
if (s is SlidePicture)
{
SlidePicture ps = s as SlidePicture;
if (ps.Name == "Picture 4")
{
//...
}
}
}
PPT.SaveToFile("output.pptx", Spire.Presentation.FileFormat.Pptx2013);