Last active
April 25, 2024 05:20
-
-
Save aspose-com-gists/6ab0e3aef5ff18107c91a801c49952fb to your computer and use it in GitHub Desktop.
Convert PowerPoint Slide to Image in Node.js
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 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