Convert PPTX to HTML in Node.js
Convert PowerPoint presentation files to HTML files with Aspose.Slides for Node.js via .NET.
Convert PPTX 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 PPTX file with the Presentation class and export it to an HTML file by using the presentation API.
Convert PPTX to HTML in Node.js
To convert PPTX to HTML, create a Presentation from the source file and export it to an HTML file.
JavaScript code to convert PPTX to HTML
const presentation = new asposeSlides.Presentation("sourceFile.pptx");
try {
presentation.save("output.html", asposeSlides.SaveFormat.Html);
}
finally {
presentation.dispose();
}
How to convert PPTX to HTML using Aspose.Slides for Node.js via .NET API
To convert PPTX 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.
Install Aspose.Slides for Node.js via .NET .
Import the
aspose.slides.via.netpackage into your Node.js project.Load the source
PPTXfile with thePresentationclass.Call
saveto export the presentation as anHTMLfile withSaveFormat.Html.
Convert PPTX to Other Supported Formats
You can also convert PPTX files to other supported presentation and export formats.