Last active
April 30, 2024 06:48
-
-
Save aspose-com-gists/f0d77ec56f862f1df76507ef4c664d42 to your computer and use it in GitHub Desktop.
Convert PPT to GIF using a Node.js Slides API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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