RemoveUnusedLayoutSlides

Compress.RemoveUnusedLayoutSlides method

Makes compression of the Presentation by removing unused layout slides.

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

Examples

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

See Also