การแปลงเป็น 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);