This article guides on how to convert HTML to PowerPoint with C# REST API. You will learn to automatically embed HTML in PowerPoint with C# REST Interface using the .NET-based Cloud SDK. It shares the details of adding HTML to an existing presentation or creating a new presentation in the cloud storage.
Prerequisite
- Create an account API credentials
- Download Aspose.Slides Cloud SDK for Dotnet to convert HTML to a presentation
- Setup C# project with the above SDK to work with HTML in a presentation
Steps to Transform HTML into PowerPoint with C# Low Code API
- Configure the SlidesApi object by setting the Client ID and secret for using HTML
- Initialize the HTML script that you want to transform into the presentation
- Call the ImportFromHtml method to create an online presentation using the above HTML
- Download and save the newly created presentation on the disk
These steps describe how to embed HTML in PowerPoint with C# REST Interface. Create the SlidesApi object, set the HTML script into a string, and call the ImportFromHtml() method to transform the HTML script to a presentation. If the presentation does not exist online, it will be created with the given name, otherwise you may upload the presentation and then use its name to add a slide with the HTML contents.
Code for Creating HTML PowerPoint Presentation with C# REST API
This code demonstrates the process to add HTML in PowerPoint with C# Low Code API. You can use the HTML string from some external source such as database or some file on the disk. If you use an existing presentation, the ImportFromHtml() method will create a new slide with the given HTML contents.
This article has guided us in using HTML script as slide content. To highlight text in a presentation, refer to the article on Highlight text in PowerPoint with C# REST API.