Skip to content

Instantly share code, notes, and snippets.

@aspose-cloud
Last active August 5, 2021 20:12
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-cloud/1f36f1a04002329202fd2317cea605f9 to your computer and use it in GitHub Desktop.
Save aspose-cloud/1f36f1a04002329202fd2317cea605f9 to your computer and use it in GitHub Desktop.
This Gist contains code snippets related to conversion of PPT to JPG using Aspose.Slides Cloud SDK for Node.js

This gist explains the steps and code snippet on how to convert DOC to PDF format using Aspose.Words Cloud SDK for Java.

For more information, please visit

const {SlidesApi,PutSlidesConvertRequest} = require("asposeslidescloud");
const requests = require("asposeslidescloud");
const models = require("asposeslidescloud/model");
const clientId = "718e4235-8866-4ebe-bff4-f5a14a4b6466";
const secret = "388e864b819d8b067a8b1cb625a2ea8e";
// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
// create an object of SlidesApi
const slidesApi = new SlidesApi(clientId, secret);
// create a SlidesConvertRequest instance
const request = requests.PostSlidesConvertRequest();
// set output format as
request.format = "Jpeg"
// read the content of PPT file from local storage
request.document = require('fs').createReadStream("/Users/nayyershahbaz/Downloads/Animated PowerPoint.ppt");
// call the Slide Convert request
slidesApi.postSlidesConvert(request).then((result) => {
// log the result response on console
console.log(result.response);
})
// catch any occurring exception during conversion process
.catch(function (_err) {
// log the error in console
console.log("Exception while calling Api: " + JSON.stringify(_err));
});
This Gist contains code snippets related to conversion of PPT to JPG using Aspose.Slides Cloud SDK for Node.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment