Convert HTML to PPT in C#
Powerful cross-platform .NET API for converting HTML to PPT using C# code on NET Framework, .NET Core, Windows Azure, Mono or Xamarin Platforms
Convert HTML to PPT using Aspose.Slides
Aspose.Slides for .NET is a powerful .NET library used to create, convert, and manipulate PowerPoint presentations, PDFs, HTML docs, and other files. When you convert HTML to PPT, you are essentially moving the contents in an HTML document to slides in a PowerPoint presentation.
Convert HTML to PPT in C#
Using Aspose.Slides for .NET , you can convert HTML doc to PowerPoint presentation with just a few lines of code:
C# code for converting HTML to PPT
using (var presentation = new Presentation())
{
using (var htmlStream = File.OpenRead("page.html"))
{
presentation.Slides.AddFromHtml(htmlStream);
}
presentation.Save("Presentation.ppt", SaveFormat.Ppt);
}
How to convert HTML to PPT in C#
Install Aspose.Slides for .NET. See Installation .
Add the library as a reference in your project.
Create an instance of the Presentation class.
Load the HTML doc you want to convert to PPT.
Save the resulting file as a PPT presentation.
Free Online Converter
Other Supported PowerPoint Conversions
You can also convert files in other formats to PowerPoint