您的位置:首页 > 编程语言 > ASP

使用Aspose将一个ppt每一帧分离出来成为一个新的ppt

2015-02-10 16:19 585 查看
不多说贴代码

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);
}

}
}
}
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐