Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active April 25, 2024 05:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/6ab0e3aef5ff18107c91a801c49952fb to your computer and use it in GitHub Desktop.
Save aspose-com-gists/6ab0e3aef5ff18107c91a801c49952fb to your computer and use it in GitHub Desktop.
Convert PowerPoint Slide to Image in Node.js
var aspose = aspose || {};
// Import the aspose.slides.via.java library into your project.
aspose.slides = require("aspose.slides.via.java");
// Create an instance of the Presentation class and load the source PPTX file.
var presentation = new aspose.slides.Presentation("/first_ppt.pptx");
try
{
// Invoke the save method to convert PPT to TIFF and save it on the disk.
presentation.save("/PPT-to-TIFF.tiff",aspose.slides.SaveFormat.Tiff);
console.log("PowerPoint slide to image conversion executed successfully.")
}
finally
{
if (presentation != null) presentation.dispose();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment