How to Convert PowerPoint PPTX Presentations to Text (TXT) using Go

PowerPoint presentations often contain a wide range of multimedia files accompanied by instances of rich text. As such, stripping text from these files for any reason (whether it be for reviewing copy, saving copy for redundancy, etc.) could take a lot longer than you might be prepared to spend doing it. Thankfully, our PPTX to TXT API makes that process incredibly simple. This API will accept your PPTX file as input, and in return, it will provide a plain text string containing all text elements contained within the original file (with formatting removed), and nothing more. For your reference, I’ve included an example response JSON:

Using the Go code examples provided below, you can quickly take advantage of this API & structure your API call with ease. All you’ll need in addition to these code examples is a Cloudmersive API key to authenticate the service; you can get one by registering a free account on our website (free accounts yield a limit of 800 API calls per month & have no additional commitments once that limit is reached).

To call the API, let’s include the code examples below in our file, and then let’s properly configure our file input & API key input fields:

Just like that, you’re all done — no more code required. Easy as pie!

--

--

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cloudmersive

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.