How do I remove the background of Aspose Slides before I'm saving them as Tiff


#1

Need to remove the background of slides before I save the presentation as Tiff raster image.


#2

@smanoff,

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[0].Background.Type = BackgroundType.OwnBackground;
pres.Slides[0].Background.FillFormat.FillType = FillType.Solid;
pres.Slides[0].Background.FillFormat.SolidFillColor.Color = Color.White;
pres.Save(path + “ContentBG_out.pptx”, SaveFormat.Pptx);
}


#3

Hi
Seems like setting the
Slide.Background.StyleIndex = 0
For each slide will remove the background color.


#4

@smanoff,

You can only use following statement for each slide to serve the purpose.

pres.Slides[0].Background.FillFormat.FillType = FillType.NoFill;