Compress

Compress class

表示一组用于压缩Presentation的方法。

public static class Compress

方法

姓名描述
static RemoveUnusedLayoutSlides(Presentation)通过删除未使用的布局幻灯片来压缩Presentation
static RemoveUnusedMasterSlides(Presentation)通过删除未使用的母版幻灯片来压缩Presentation

例子

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

也可以看看