Convert PDF to HTML in Node.js
Convert PDF files to HTML files with Aspose.Slides for Node.js via .NET.
Convert PDF to HTML using Node.js
To convert PDF to HTML, create a Presentation, import the source file with addFromPdf, and export the presentation to an HTML file.
Node.js code to convert PDF to HTML
const presentation = new asposeSlides.Presentation();
try {
presentation.slides.removeAt(0);
presentation.slides.addFromPdf("sourceFile.pdf");
presentation.save("output.html", asposeSlides.SaveFormat.Html);
}
finally {
presentation.dispose();
}Convert PDF 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. Create a Presentation, import a PDF file with the addFromPdf method, and export the presentation to an HTML file.
How to convert PDF to HTML using Aspose.Slides for Node.js via .NET API
To convert PDF to HTML using Aspose.Slides for Node.js via .NET, import the package, load the source file, and export it in the required format.
- Install Aspose.Slides for Node.js via .NET.
- Import the
aspose.slides.via.netpackage in your Node.js project. - Create a
Presentationand import the sourcePDFfile withaddFromPdf. - Call the
savemethod with the output file path andSaveFormat.Html.
Convert PDF to Other Supported Formats
You can also convert PDF files to other supported presentation and export formats.