Convert PPTM to HTML in Node.js

Convert macro-enabled PowerPoint presentation files to HTML files with Aspose.Slides for Node.js via .NET.

Convert PPTM to HTML in Node.js

To convert PPTM to HTML, create a Presentation from the source file and export it to an HTML file.

JavaScript code to convert PPTM to HTML

const presentation = new asposeSlides.Presentation("sourceFile.pptm");
try {
    presentation.save("output.html", asposeSlides.SaveFormat.Html);
}
finally {
    presentation.dispose();
}

Convert PPTM to HTML in Node.js

Aspose.Slides for Node.js via .NET lets developers create, read, edit, and convert presentation files in Node.js applications. You can load a PPTM file with the Presentation class and export it to an HTML file by using the presentation API.

How to convert PPTM to HTML using Aspose.Slides for Node.js via .NET API

To convert PPTM to HTML using Aspose.Slides for Node.js via .NET, you need to import the package in your JavaScript file and create an instance of the Presentation class. The Presentation class represents a PowerPoint document and provides methods to access and manipulate its elements.

  1. Install Aspose.Slides for Node.js via .NET.
  2. Import the aspose.slides.via.net package into your Node.js project.
  3. Load the source PPTM file with the Presentation class.
  4. Call save to export the presentation as an HTML file with SaveFormat.Html.

Convert PPTM to Other Supported Formats

You can also convert PPTM files to other supported presentation and export formats.