RemoveUnusedMasterSlides

Compress.RemoveUnusedMasterSlides method

Makes compression of the Presentation by removing unused master slides.

public static void RemoveUnusedMasterSlides(Presentation pres)
ParameterTypeDescription
presPresentationThe presentation instance

Examples

using (Presentation pres = new Presentation("pres.pptx"))
{
    Aspose.Slides.LowCode.Compress.RemoveUnusedMasterSlides(pres);
    
    pres.Save("pres-out.pptx", SaveFormat.Pptx);
}

See Also