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
0
votes
0 answers

Google Apps Script Append slide very slow

I am trying to create new bigger presentation by appending copies of smaller presentations (modules of 3-4 slides). Though I know how to go about doing this, I find the performance to be less than satisfactory. It takes up to 4-5 minutes just to…
Peter Louis
  • 125
  • 3
  • 11
0
votes
0 answers

Debug Google Slides via API

Google Slides presentation and slides structure are very specific, it's quite different from HTML/CSS representation of values. For example, to create and to position of an element, You should do something like this : var requests = [{ …
Fedir RYKHTIK
  • 9,844
  • 6
  • 58
  • 68
0
votes
0 answers

Resize the crop of an image in google slides without distorting it

I am trying to change the crop of an image using google apps script in google slides. The image gets distorted when I change the width and height of the image. And it looks like the crop properties are read-only. I was wondering if anyone here knows…
Poora
  • 43
  • 5
0
votes
1 answer

Update shape color using Ruby Google Slides API

I'm trying to update an ellipsis shape using the google slides api in ruby. This is the code: shape_properties = { shape_background_fill: { solid_fill: { color: { rgb_color: { red: 1.0, …
0
votes
2 answers

Delete slides that contain a specific text string

I'm working on an automated slide setup and depending on some opt-out variables I need to remove some of the slides if they are not desired in the final output. To solve this I have created a script that adds a simple text string…
Jonas Bæk
  • 100
  • 9
0
votes
0 answers

The method replaceAllShapeWithImage throw Internal error encountered

I'm working on generation of Google Presentation (template with more than 50 slides) using PHP SDK, and recently when I use the method replaceAllShapeWithImage, it takes a long time to throw one of theses messages : Error Message 1 : { "error": { …
elhaj
  • 438
  • 5
  • 10
0
votes
1 answer

Is it possible to create trigger on selection, for google script in slides?

Is it possible to create trigger on selection, for google script in slides?
amr osama
  • 1,129
  • 2
  • 18
  • 34
0
votes
1 answer

Insert Images into an existing google slides template

Here's my current code: var NAME = "My favorite images"; var deck = SlidesApp.openById("1DKsiDGX9wwRbgP9WH2IJL2- b1u1Q6jjz0JbrrKd_Fl4 "); /** * Creates a single slide using the image from the given link; * used directly by…
0
votes
0 answers

How to link Google Sheet (range of cells) to a slide from API V4 PHP?

I am trying to insert (link) a cell range from a Google Sheet in to a Google Slide using API V4 (PHP). I cannot find anything in the documentation regarding this. But it is possible manually. Is there any way to do this via API?
0
votes
1 answer

how do I replace text only within a textrun

I am using the google slides API to automatically update a presentation which has some pretty detailed tables. I have a table with several cells, and within each cell I have 3 different Lines with different formatting. For example, the top line has…
Alex
  • 193
  • 1
  • 2
  • 10
0
votes
2 answers

Google Slides API invalid presentations id

I'm trying to create some slides with the Slides API but I started getting this error Invalid presentation.presentationId: The id is invalid. I tried to create it through the API reference without success as shown in the image: Reference request and…
0
votes
0 answers

Container Bound Google Apps Script

I have a container bound Google apps script attached to a Google Sheet that uses the Slides API to pull data and replace values from the sheet to perform a "mail merge" on a select Google Slides presentation using a custom menu element. The issue…
0
votes
1 answer

Google SlidesApp script - compare strings

In my "container bound" SlidesApp using script I have a need to compare strings and have no idea how to do it. For example, I find the text inside one of my shapes: shapes[i].getText().asString(); So, now I need to see if it contains a "needle" in…
a1s2d3f4
  • 589
  • 4
  • 7
  • 18
0
votes
1 answer

Is there any Google Slide AppScript trigger function called when the presenter progresses from slide-to-slide?

I'd like to perform an action (while I'm presenting a Google Slides App) each time I progress from one slide to another. Is there such a trigger? If there isn't how could I implement that? Looking at the progress example…
Csaba Toth
  • 10,021
  • 5
  • 75
  • 121
0
votes
0 answers

How to auto update 'Shapes' elements im Google Slides?

I'm making a Google Spreadsheet with some information that I want to import in my Google Slide project. That works fine. I want to make sure that I can update all input in the Google Slides document with a function. So far I found out how to make…