PPTX to HTML C#

In various scenarios, MS PowerPoint presentations are converted into images or HTML files. For example, when you need to embed presentation slides on a webpage or display them within a desktop application. For such cases, this article provides you a step by step guide of how to convert PowerPoint PPT or PPTX files to HTML using C#. Furthermore, you will learn how to include or exclude the hidden slides of a presentation in the converted HTML.

C# PowerPoint to HTML Converter API

Aspose.Slides for .NET is a presentation manipulation API that lets you create and process PowerPoint presentations from within your .NET applications. Along with other PowerPoint automation features, The API allows you to convert PPT/PPTX presentations to other formats including HTML. You can either download the API’s DLL or install it using NuGet.

PM> Install-Package Aspose.Slides.NET

Convert PowerPoint PPTX to HTML in C#

The following are the steps to convert a PowerPoint PPTX file to HTML using Aspose.Slides for .NET.

The following code sample shows how to convert a PowerPoint PPTX to HTML using C#.

PowerPoint Presentation

PPTX File

Converted HTML

PPTX to HTML C#

C# PPT/PPTX to HTML Conversion with Hidden Slides

PowerPoint presentations may also include hidden slides. By default, the hidden slides are excluded in conversion to HTML. However, you can configure the API to include the hidden slides as well. The following are the steps to perform this operation.

The following code sample shows how to include hidden slides in PPTX to HTML conversion in C#.

Get a Free API License

You can get a free temporary license in order to try the API without evaluation limitations.

Conclusion

PowerPoint to HTML conversion is adopted in various scenarios. In accordance with that, in this article, you have learned how to convert PowerPoint PPT/PPTX files to HTML using C#. Furthermore, you have seen how to include the hidden slides in PPTX to HTML conversion. You can explore more about Aspose.Slides for .NET using the documentation.

See Also