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
3
votes
2 answers

Google Slide API - copy an object from a file to another file

I have just started playing with Google Slide API. I am able to duplicate object within a file. However, I couldn't do it when I tried copying an object from one file to another. The function will return an error that the objectId is not found.…
Rick Chong
  • 33
  • 4
3
votes
2 answers

Google Slides API, positioning of image on the slide

I am inserting an Image to a Google Slide using Google Slides API , My code is $emu4M = array('magnitude' => 5500000, 'unit' => 'EMU'); $requests = array(); $requests[] = new Google_Service_Slides_Request(array( 'createImage' =>…
Mudassar Khani
  • 1,469
  • 1
  • 20
  • 39
3
votes
3 answers

Save Google Slide as PDF using Google Apps Script

Is there a way to save a Google Slides as PDF file by using Google Apps Script? I could only find solutions for saving Google Docs and Sheets.
Roberto B
  • 111
  • 2
  • 10
3
votes
1 answer

Getting title of slide in Google Apps Script

I'm attempting to write a google apps script that takes the slide titles of every slide (as they are in the master slides) and put them in a nicely formatted table of contents on slide 2. It doesn't necessarily have to be done with apps script, but…
njha
  • 1,118
  • 1
  • 13
  • 24
2
votes
1 answer

Google Apps Script: TableChart - How to use cssClassNames

I'm trying to modify the format of the Table Chart that I've added to a Google Slide. I've found that the setOption would be the function to use to achieve this but I haven't been able to validate if the following attributes can be modified: Header…
2
votes
0 answers

Set a color for visited links in Google Slides using the Google API?

I saw on the Google API resources that mapping can be set for FOLLOWED_HYPERLINK, which is not currently an option in Google Slides. How can I change the visited links color using the Google Slides…
Tina
  • 21
  • 1
2
votes
3 answers

Please Look Again: Google Advanced Slides API insert text in existing table

QUESTION: How do I insert text into cells of an existing table in Google slide? I have an existing presentation with a mockup table with all the dimensions and colors as wanted. It does not contain any text. This is the code I ran to try to populate…
aNewb
  • 188
  • 1
  • 12
2
votes
1 answer

How do i add a comment to a particular google slide using app script

I have a google slide desk with three slides & i want to add a comment to each slide. I am able to reach to the slide using for loop (total rows in sheet is same as total number of slides, and slide i am using is the second slide onwards. so there…
santoshaa
  • 173
  • 2
  • 4
  • 10
2
votes
1 answer

Google Slides API, able to use Hexadecimal to set Colors?

Is it possible to set Element Shape background color with Hexadecimal format eg #B6D7A8 ? I see an example here, Google Slides API- How to change text color for all shapes of a certain color However, the Google Slide API reference does not mention…
mattsmith5
  • 540
  • 4
  • 29
  • 67
2
votes
0 answers

Get the lh3.googleusercontent.com link of every slide via Google Apps Script

I have seen some of the Slide addons that bring every Slides for offline processing (as GIF/Video etc) There are links that render as image for every slide in this slide file lh3.googleusercontent.com Like for example for the slide…
Code Guy
  • 3,059
  • 2
  • 30
  • 74
2
votes
1 answer

RegEx Google Apps Script with replaceAllText

I've tried to replace some text in Google Slides with replaceAllText, it works fine if I provide the string, however I can't find the solution for regex. What I want to change is: N = 500 Regex variations I tried with replaceAllText: /N [=,…
Dansekongen
  • 328
  • 3
  • 11
2
votes
0 answers

Google Slides API (Slides.Presentations) is undefined via Google Apps Script

I'm facing an error TypeError: Cannot read property 'batchUpdate' of undefined" when I use the following code in my GAS: var batchUpdateResponse = Slides.Presentations.batchUpdate( { requests: requests }, presentationId ); Google Slides…
Emiko
  • 21
  • 1
2
votes
1 answer

Put dotted/dashed lines on layout in Google Slides

Updated : with the help of The Master solution .setDashStyle(SlidesApp.DashStyle.DOT); Trying to insert dotted/dashed lines on the layout in Google Slide. But my solution gives me straight lines and the height of the lines are limited to the…
2
votes
1 answer

Google slides API - How to get the masterTemplate ID?

My company's slides suite has a master template that we use for all of our decks. I am building a script to automatically create Slides and populate them with some csv info. I have managed to create and populate the slides, and I can access ObjectId…
user13192625
2
votes
1 answer

How do I execute requests in Google slides apt script replaceAllText

I'm playing around with a dynamic signage project and need a little help finishing off some GAS in Slides. All I want to do is replace some text in the active presentation with some text from (one cell) in a Google spreadsheet. I think I have the…
emrwilks
  • 23
  • 3