Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save groupdocs-cloud-gists/3130d2b29873183f0c763159c24d73b2 to your computer and use it in GitHub Desktop.
Save groupdocs-cloud-gists/3130d2b29873183f0c763159c24d73b2 to your computer and use it in GitHub Desktop.
Extract PowerPoint images

How to develop PowerPoint image extractor with Node.js API


This guide explains how to extract images from PowerPoint (.ppt, .pptx) presentations using GroupDocs.Parser Cloud SDK for Node.js API. Learn to install the SDK, configure API calls, and use cURL for automated image extraction



For more details, please visit Extract Text from PowerPoint in Node.js.

extract powerpoint images

Important Links

Product Page | Docs | Live Demo | API Reference | Code Samples | Source Code | New Releases | Blog | Free Support | Free Trial

Develop PowerPoint image extractor using Node.js API
// For more examples, please visit https://github.com/groupdocs-parser-cloud/groupdocs-parser-cloud-node
const { ParserApi, Configuration, ImagesRequest, FileInfo, ImagesOptions } = require("groupdocs-parser-cloud");
const config = new Configuration("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET");
const parserApi = new ParserApi(config);
const fileInfo = new FileInfo();
// Path of input Powerpoint
fileInfo.filePath = "input.pptx";
const options = new ImagesOptions();
options.fileInfo = fileInfo;
const request = new ImagesRequest(options);
parserApi.images(request).then((response) => {
console.log("Images extracted successfully.");
console.log(response.images);
}).catch((err) => {
console.error("Failed to extract images:", err);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment