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
1 answer

How to resize a selected image in slides?

I have a number of selected images through a bunch of presentations that I need to size to a standard size. I was wondering how do I get my script below running for just the "selected" image(s) on the current slide. I found a solution where someone…
2
votes
1 answer

Is there a way to unlink all the charts in a Google slide presentation in one go?

I am trying to accomplish this using AppScript using Slides API. However, I am a JS noob. Please help. function onOpen() { var ui = SlidesApp.getUi(); ui.createMenu('Custom Menu') .addItem('Batch Update Charts', 'batchUpdate') …
2
votes
0 answers

How to insert vector image using the Google Slides API?

My goal is to insert a vector drawing using a Google Slide extension. My files are in SVG, but we can assume that I am able to convert them in any vector format that would be required. Using either the standard or advanced Slides API, it seems that…
Steren
  • 7,311
  • 3
  • 31
  • 51
2
votes
0 answers

How get actual heights of Google Slides table rows?

Using Google Slide API I create a table with two rows, each with one cell. The first one contains a one line text, the second a two lines text. Since theirs heights are adjusted on the contents, the second row is displayed higher than the…
Max
  • 364
  • 1
  • 2
  • 10
2
votes
1 answer

How to apply an object shape image mask to an image via Google Slides API

On slides.google.com, after inserting an image, it's possible to "mask image" with shapes. I don't see anything about doing this programmatically in the API Reference documentation, nor see anything in the "slides.presentations.get" API response…
2
votes
1 answer

How To Define Masters In A New Presentation With Google Slides API?

I am building an Android app that programmatically creates a presentation. I've tried using both the Java libraries as well as the online interactive slides API to create a new presentation and set the master slides. I am starting simple here -…
2
votes
0 answers

Audio on Google Slides Using Google App Script

How would you add audio to Google Slides using Google App Script? I have tried following: embedding the video inside of a 0x0 pixels area, but Google Slides has removed HTML and iframe embedding. put the video behind everything, but that didn't…
ds_secret
  • 338
  • 3
  • 18
2
votes
1 answer

How to paste Google Sheets Content into a Google Slide using Apps Script?

I´m searching now for three days and cannot find a method to get a Google Sheets Range into a Slide. var range = SpreadsheetApp.getActive().getActiveSheet().getRange('A1:B3'); var slidesPage =…
2
votes
1 answer

Is there a way get/add animation to objects using a Google Apps Script in Google Slides?

When formatting a Google Slides presentation using a Google Apps Script, is there any way to access and/or modify the data regarding animations of objects (text boxes, shapes, images, etc.) in order to add, delete, or modify animations?
user76652
  • 21
  • 2
2
votes
3 answers

Remove notes in Google Slides using Google Apps Script and Slides API

I'm trying to write a function to delete notes from Google Slides presentation using Google Apps Script. I went through the examples and assume I need to match that to something like…
user3306720
  • 93
  • 1
  • 1
  • 5
2
votes
3 answers

Change background of google slides shape to red

I am trying to find the answer in Google Slides API references for how to set the background color of a shape I have in my Google Slide. I have given it the title (using Alt Text feature) "rectangle1", so my intention is to write the code along the…
a1s2d3f4
  • 589
  • 4
  • 7
  • 18
2
votes
1 answer

Google Slides API activating script on click of element

I am trying to create a branching scenario using google slides, the idea is that someone viewing the presentation can click on the buttons and see the outcome of their selections. The first few slides it's easy, it's a 1 to 1 so I can just use the…
Ren Denim
  • 23
  • 3
2
votes
0 answers

Finding whether the slide is skipped or not using GAS

I want to check among the slides, whether a slide is skipped or not? I have referred the API as well as slide service, but I couldn't find a way to determine the skipped slide. How do I write a custom code slide.isSkipped() which will return true if…
Code Guy
  • 3,059
  • 2
  • 30
  • 74
2
votes
1 answer

Google Apps Script: How to create slides on Google Slides and fill the placeholders in it with information from an array?

I have an array and am trying to use the information in it to create a Google Slides presentation. I would like some help and, if possible, also point me to some material that I could read to better understand the possible solutions to these…
2
votes
1 answer

search slide and get page element text

My script searches one specific slide in a presentation. Then it gets the text from the first page element. This page element is a shape with only one word. After this, when I put strings before and after this page element text, there is a break in…
Roberto B
  • 111
  • 2
  • 10