تحويل إلى 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);

تحميل عينة الكود