[英]Export Slides from Powerpoint To HTML5 File
我正在寻找一种将PowerPoint文件的每张幻灯片导出为html文件的方法。
我尝试了很多方法:
using Powerpoint = Microsoft.Office.Interop.PowerPoint;
PowerPoint.Application app = new Powerpoint.Application();
PowerPoint.Presentation pres = app.presentation.Open(filepath+"filename.ppt", MsoTriState.msoTrue, MsoTriState.msoFalse, MsoTriState.msoTrue);
//Trying to export presentation as Html
pres.SaveAs(filepath+"filename.html", PowerPoint.PpSaveAsHtml, MsoTriState.msoTrue);
//Trying to export each Slide as image. Unfortunately don't export as html
int i = 0;
foreach (PowerPoint.Slide slide in press.Slide){
i+=1;
String oPath = filepath+"filename_"+i+".jpg";
slide.Export(oPath, "jpg", 1024, 768);
}
pres.Close();
App.Quit();
我可以以编程方式将每个幻灯片导出为保留动画的简单html文件吗?
最好的方法是使用转换器。 SlideGo是一个免费软件,可以选择将每个幻灯片转换为一个HTML文件,并保留所有动画。 实际上,它甚至比许多商业工具还要好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.