Questions tagged [google-slides-api]

Google Slides lets you create, edit, collaborate, and deliver presentations using compelling themes and fonts, embedded video, charts, animations, and more.

Apps can integrate with the Google Slides API to create beautiful slide decks automatically from user- and system-provided data. For example, you could use customer details from a database and combine them with predesigned templates and selected configuration options to create finished presentations in a fraction of the time it would take to create them manually.

Important Links

451 questions
2
votes
2 answers

How do you add a connecting line to a google slides presentation using app scripts?

I am trying to follow the Google Slides API reference material; 'Lines' but I must be missing something. I have successfully added rectangle shapes using the script, but now I want to connect them with a line. Here is what I have so far: function…
2
votes
1 answer

Insert image to slides from drive using api in python

I am trying to insert images from google drive into an existing slides presentation but I get the error Invalid requests[0].createImage: The provided image was not found I have tried several ways to generate a link that would work (fig_url 2-8).…
DoreenBZ
  • 328
  • 1
  • 8
2
votes
2 answers

How can I add or replace a Google Slide notes text with a hyperlink?

I need to have a note created with Google Apps Script in a presentation on slide 0 where it is having a hyperlink, which I grab off a Google Sheet, attached to it. It needs to be a note not a text or image in a slide. Reason being, that URL's are…
Thomas Holst
  • 21
  • 1
  • 2
2
votes
2 answers

Copying Multiple Slides from a Master Slide Desk using Google Apps Script

I have created a code which replaces placeholders on google slides. The starting point of this project is a google form. Once the google form has been submitted - then the relevant data from google form is entered on the google slides template. See…
2
votes
1 answer

Google script replaceAllShapesWithImage with image from drive doesn"t work any more

Since yesterday one of my google script doesn't work anymore. The script take an image on the drive copie a slide replace a shape with an image But I got this error: "The provided image is in an unsupported format." -> I give all access to the…
2
votes
2 answers

Google drive always exports blank pdf via API

I have a Google presentation on my Gdrive and I want to export it programatically to PDF. It works fine, but the downloaded file is always blank! Yet with the right number of pages. Here's my code function exportFile(auth, id) { const drive =…
Ben Scarberry
  • 943
  • 2
  • 8
  • 11
2
votes
2 answers

Extract URL of a specific slide in a presentation with Google Apps Script

I have an issue with Google Apps Script. I have a slide link of Google Slides in a Google Sheets file. I made a copy of both files and I want to update the slide link in the sheet with the new one. Could you help me to find a solution to do it?…
2
votes
2 answers

Google Suite - Apps Script - Download Slides as PNG files via API

Good Morning All. I have written a short script which batch-creates [single page] Google Slides based on rows from a spreadsheet. While in the loop for each creation, I would like to create a PNG of the Slide in Google Drive (or download on the…
2
votes
1 answer

generate powerpoint automatically using google-slides-api

I was using this website as a source to auto-generate google slides using the contents in google spreadsheet. All works fine but I cant make it save it to a folder in my google drive. Can someone help me? I tried: folder_id = 'xxx' file_metadata =…
Hachi
  • 179
  • 14
2
votes
1 answer

Automatically Updating a Google Sheets Table inside Google Slides

I have several Google Sheets tables inside a Googles Slides presentation that I would like to keep automatically updated. Is there a of triggering the new "Update All" feature in Scripts? Or is there some other feature that would do it? Note - I…
2
votes
2 answers

Google Slide API-How do i duplicate a slide several times and creating a unique object id each time

In general i want people to put some data into a google sheet and provide a button, which takes the data and automatically fills a prefabricated google slide. I have chosen the approach to duplicate a master slide and then replacing individual text…
Julian
  • 55
  • 5
2
votes
0 answers

Is there a way I can add a mouseover event to an image in google script editor?

I'm making an application in google script editor for google slides where when the user hovers over the image, the image enlarges. Q1: Right now I have a onOpen function which calls a hover image function that should for each image on the slide user…
asdfb
  • 21
  • 1
2
votes
1 answer

How to publish a Google Slides presentation from Google Apps Script?

I have built a Google Slides presentation using Google Apps Script. var docId = DriveApp.getFileById(templateId).makeCopy().getId(); var newDoc = DriveApp.getFileById(docId).setName(newDocName); var newDocUrl = newDoc.getUrl(); // This gets the URL…
Let Me Tink About It
  • 15,156
  • 21
  • 98
  • 207
2
votes
2 answers

How to attach a link to a shape or text box on Apps Script?

I know how to add a shape to a slide, but I know in Google Slides you are able to link another slide to display once you click on that text box. Is it possible to in App Script create a shape and then attach a link to it? I have looked at the API…
2
votes
1 answer

Google Slides API update table background color

basically I have table (8 rows x 3 columns) within the Google slides presentation, that I want to change background color to via the API. First item of my list of rgb color values: cons_data_lst[0][1][-1] >>> [0.5882353, 0.7764706, 0.4862745] My…
Simas
  • 642
  • 8
  • 15