Using the Google Slides API with Apps Script for Document Merge

Google Slides API lets you programmatically create new presentations and edit existing ones. You can pull data from an external data source, like a Google Spreadsheet or Salesforce CRM, and create a nice-looking report in the form of a presentation. You can convert a Google Document into Google Slides or export a presentation as a PDF file.

You can also read an existing presentation using the API and modify individual elements on slides. For instance, if your organization logo has changed, you can use the Google Slides API to update the embedded images inside all slide via the API. Or if you would like to delete all slide that contains specific text, that can be done with the Google Slides API.

Replace Text in Google Slides presentation

You can use Google Apps Script to modify your Google Slides presentation. This quick example shows how to replace the markers in a presentation with actual text. Do enable the Slides API under Advanced Services.

Similarly, you can make HTTP POST requests to insert text boxes or images, for replacing text or for deleting specific page elements from slides. To replace text everywhere within a presentation, use a ReplaceAllTextRequest request.

Related

Amit Agarwal is a web geek, ex-columnist for The Wall Street Journal and founder of Digital Inspiration, a hugely popular tech how-to website since 2004. He holds an engineering degree in Computer Science from IIT and happens to be the first professional blogger in India. He's been profiled on Lifehacker. With 19 years' experience in software development, Amit has authored several popular Google Add-ons that are deployed in some of the biggest companies and universities worldwide with over 250,000 installations. Download the PDF brochure to know more.