PPT转化成Image、PPTX、XPS、EMF
2016-04-18 09:40
274 查看
最近工作经常用到演示文稿,接触到了一款不错的免费软件—Free Spire.Presentation。使用之后发现这款软件非常轻巧,功能还挺齐全。这款软件的转化功能也是非常不错的,平时遇到的各种转换难题,用短短几行代码就能搞定。现在我跟大家分享一下我的使用心得。
有兴趣的朋友可以从E-iceblue官网下载FreeSpire.Presentation使用。下载完成后,请将bin文件夹的.DLL添加作为Visual
Studio的引用。
将PPT文件转化成Image文件
将PPT文件转化成PPTX文件
将PPT文件转化成XPS文件
将PPS文件转化成PPTX文件
将PPT文件转化成EMF文件
PS:我们在之前文章里面曾经谈过将PPT文件转化成PDF文件,在这里就不多作介绍了。
有兴趣的朋友可以从E-iceblue官网下载FreeSpire.Presentation使用。下载完成后,请将bin文件夹的.DLL添加作为Visual
Studio的引用。
将PPT文件转化成Image文件
//Create a presentation document. Presentation presentation = new Presentation(); //Load the PPT file from disk. presentation.LoadFromFile("sample.pptx"); // Save the slide to Image. Image image = presentation.Slides[i].SaveAsImage(); //Save image to file. String fileName = String.Format("result-img-{0}.png", i); image.Save(“ToImage”, System.Drawing.Imaging.ImageFormat.Png); //Launch and view the image. System.Diagnostics.Process.Start(“ToImage”);
将PPT文件转化成PPTX文件
//Create a presentation document. Presentation presentation = new Presentation(); //Load the PPT file from disk. presentation.LoadFromFile("sample.ppt"); //Save the PPT document to PPTX file format. presentation.SaveToFile("ToPPTX.pptx", FileFormat.Pptx2010); //Launch and view the resulted PPTX file. System.Diagnostics.Process.Start("ToPPTX.pptx");
将PPT文件转化成XPS文件
//Save to the XPS file. ppt.SaveToFile("sample.xps", FileFormat.XPS);
将PPS文件转化成PPTX文件
//Save the PPS document to PPTX file format. presentation.SaveToFile("ToPPTX.pptx", FileFormat.Pptx2010);
将PPT文件转化成EMF文件
//Save the presentation slide to EMF image. presentation.Slides[2].SaveAsEMF("result.emf");
PS:我们在之前文章里面曾经谈过将PPT文件转化成PDF文件,在这里就不多作介绍了。
相关文章推荐
- 如何使用 Beamer 创建演示文稿
- ASP.NET中实现导出ppt文件数据的实例分享
- C#实现将PPT转换成HTML的方法
- 使用impress.js制作幻灯片
- java读取word-excel-ppt文件代码
- PHP读取PPT文件的方法
- java使用poi读取ppt文件和poi读取excel、word示例
- java实现PPT转PDF出现中文乱码问题的解决方法
- Python实现对PPT文件进行截图操作的方法
- Python输出PowerPoint(ppt)文件中全部文字信息的方法
- python实现向ppt文件里插入新幻灯片页面的方法
- How to delete all the animations in a presentation
- 简约风格的PPT,如何做才不显空洞?
- 你的一天 VS 50K产品经理的一天
- PPT
- PPT无法输入中文
- 一篇实用的关于ppt的文档
- PPT图片模板等素材打包下载