Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active April 30, 2024 06:48
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/f0d77ec56f862f1df76507ef4c664d42 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/f0d77ec56f862f1df76507ef4c664d42 to your computer and use it in GitHub Desktop.
Convert PPT to GIF using a Node.js Slides API
var aspose = aspose || {};
// Import aspose.slides.via.java into your working project.
aspose.slides = require("aspose.slides.via.java");
// Create an object of the Presentation class and load the source PPT/PPTX file.
var pres = new aspose.slides.Presentation("/first.pptx");
try
{
// Convert PPT to GIF and save the file by calling the save method.
pres.save("/PPT-to-gif.gif",aspose.slides.SaveFormat.Gif);
console.log("PPT to animated GIF conversion done successfully.")
}
finally
{
if (pres != null) pres.dispose();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment