HTMLへの変換

HTML は、データ交換のために広く使用されているフォーマットの一つです。Aspose.Slides for .NET は、プレゼンテーションを HTML に変換する機能を提供します。以下に、方法を示すコードスニペットを紹介します。


 string FilePath = @"..\..\..\Sample Files\";

string srcFileName = FilePath + "Conversion.pptx";

string destFileName = FilePath + "Converting to HTML.html";

//Instantiate a Presentation object that represents a presentation file

Presentation pres = new Presentation(srcFileName);

HtmlOptions htmlOpt = new HtmlOptions();

htmlOpt.HtmlFormatter = HtmlFormatter.CreateDocumentFormatter("", false);

//Saving the presentation to HTML

pres.Save(destFileName, Aspose.Slides.Export.SaveFormat.Html, htmlOpt);

サンプルコードのダウンロード