轉換為 HTML
Contents
[
Hide
]
HTML 是眾多廣泛使用的資料交換格式之一。Aspose.Slides for .NET 提供將簡報轉換為 HTML 的支援。以下是示範如何操作的程式碼片段。
string FilePath = @"..\..\..\Sample Files\";
string srcFileName = FilePath + "Conversion.pptx";
string destFileName = FilePath + "Converting to HTML.html";
//實例化一個表示簡報檔案的 Presentation 物件
Presentation pres = new Presentation(srcFileName);
HtmlOptions htmlOpt = new HtmlOptions();
htmlOpt.HtmlFormatter = HtmlFormatter.CreateDocumentFormatter("", false);
//將簡報儲存為 HTML
pres.Save(destFileName, Aspose.Slides.Export.SaveFormat.Html, htmlOpt);