Use an HTML Document

Introduction

The following method allows you to create a PowerPoint presentation using an HTML document. The HTML document is used to create presentation content.

API Information

API Type Description Resource
/slides/{name}/fromHtml POST Creates a new presentation from an HTML document is the request body. ImportFromHtml

Request Parameters

Name Type Location Required Description
name string path true The file name for the new presentation.
html string body false The HTML data for the new presentation.
password string header false The password to encrypt the new presentation.
folder string query false The folder path where the new presentation will be located.
storage string query false The storage name where the new presentation will be located.

cURL Examples

Create a new presentation Data/Sales.pptx in a Main storage from an HTML document.

HTML document
<html>
  <head></head>
  <body>
    <p>Hello, Aspose!</p>
  </body>
</html>

SDK Examples

Create a new presentation Data/Sales.pptx in a Main storage from an HTML document.

HTML document
<html>
  <head></head>
  <body>
    <p>Hello, Aspose!</p>
  </body>
</html>

SDKs

Using an SDK (API client) is the quickest way for a developer to speed up the development. An SDK takes care of a lot of low-level details of making requests and handling responses and lets you focus on writing code specific to your particular project. Check out our GitHub repository for a complete list of Aspose.Slides Cloud SDKs along with working examples, to get you started in no time. Please check Available SDKs article to learn how to add an SDK to your project.