RemoveUnusedMasterSlides

Compress.RemoveUnusedMasterSlides method

通过删除未使用的母版幻灯片来压缩Presentation

public static void RemoveUnusedMasterSlides(Presentation pres)
范围类型描述
presPresentation演示实例

例子

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

也可以看看