Skip to content

Instantly share code, notes, and snippets.

@groupdocs-cloud-gists
Last active July 2, 2025 12:06
Show Gist options
  • Save groupdocs-cloud-gists/340af32ae09b478772073f07940f85b3 to your computer and use it in GitHub Desktop.
Save groupdocs-cloud-gists/340af32ae09b478772073f07940f85b3 to your computer and use it in GitHub Desktop.
Extract PowerPoint Text using Node.js

Extract Text from PowerPoint with Node.js API


This guide demonstrates how to programmatically extract text from PowerPoint presentations (.ppt, .pptx) using Node.js and the GroupDocs.Parser Cloud REST API. Learn to configure the SDK, extract text, and use cURL for script-based integration. This operation is performed using GroupDocs.Parser Cloud SDK for Node.js.



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

extract powerpoint text

Important Links

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

How to extract text from PowerPoint using Node.js API
// For more examples, please visit https://github.com/groupdocs-parser-cloud/groupdocs-parser-cloud-node
const { Configuration, ParserApi, TextOptions, TextRequest, FileInfo } = require("groupdocs-parser-cloud");
const config = new Configuration("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET");
const parserApi = new ParserApi(config);
const fileInfo = new FileInfo();
// Input PowerPoint path
fileInfo.filePath = "input.pptx";
// specify TextOptions object
const options = new TextOptions();
options.fileInfo = fileInfo;
const request = new TextRequest(options);
parserApi.text(request).then(response => {
console.log("Extracted text content:");
console.log(response.text);
}).catch(err => {
console.error("Error extracting text:", err);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment