Need to remove the background of slides before I save the presentation as Tiff raster image.
I have observed your comments. Can you please visit this documentation link. This will help you to achieve requirements. Also i have shared code snippet with you. Please check that also and if there is still an issue than please share feedback with us.
using (Presentation pres = new Presentation())
pres.Slides.Background.Type = BackgroundType.OwnBackground;
pres.Slides.Background.FillFormat.FillType = FillType.Solid;
pres.Slides.Background.FillFormat.SolidFillColor.Color = Color.White;
pres.Save(path + “ContentBG_out.pptx”, SaveFormat.Pptx);
Seems like setting the
Slide.Background.StyleIndex = 0
For each slide will remove the background color.
You can only use following statement for each slide to serve the purpose.
pres.Slides.Background.FillFormat.FillType = FillType.NoFill;