不多说贴代码
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Aspose.Slides; namespace Test { class Program { static void Main(string[] args) { string pptName = "开发经营PPTOut.pptx"; using (Presentation pres = new Presentation(pptName)) { for (int m = 0; m < pres.Slides.Count; m++) { using (Presentation pes = new Presentation()) { pes.SlideSize.Size = pres.SlideSize.Size; pes.Slides.RemoveAt(0); pes.Slides.AddClone(pres.Slides[m]); pes.Save(m+1 + ".pptx", Aspose.Slides.Export.SaveFormat.Pptx); } } } } } }
时间: 2024-11-10 17:06:13