Conversión a HTML
Contents
[
Hide
]
HTML es uno de varios formatos ampliamente utilizados para intercambiar datos. Aspose.Slides for .NET proporciona soporte para convertir una presentación a HTML. A continuación se muestra un fragmento de código que le indica cómo.
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);