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

Why Google Slides not Autofit text in placeholders?

I have a simple slide where the placeholders are all set in: Shrink text on overflow. Despite this, the text is not reduced and through the Api I discover that the Autofit is not set. In setting it, however, I get the following error: Autofit types…
Devma
  • 31
  • 1
3
votes
1 answer

export a Google slide as an image via Google Slides Api or Drive api

I am generating a google slide dynamically using a template ppt present in my drive. I need to convert this newly created ppt as an image and want to store this in another folder in the drive itself. I may have more than 1 slide in the…
3
votes
2 answers

How to programmatically control the guides (rules of third)?

Is there any way to control guides (rules of third) in a Google Slides presentation. As far as I have read the Google Apps Script documentation, there is no method to control the guides. I already tried lines that would behave like guides (rules of…
Naresh
  • 2,761
  • 10
  • 45
  • 78
3
votes
1 answer

How do I get Figma API to work with the Google App-script API?

I am thinking of creating a google slides to Figma exporter using Google App Script. Starting out I would first like to route the shapes created in from google Slides to figma. How would I go about setting up my file? And I don't know how to set up…
3
votes
1 answer

Setting width and height of tables with Google Slides Apps Script

I'm using Google Apps Script to manipulate a Slides file. I want to create a table on a slide and set the height/width of a row/column, of a particular cell, or of the table overall. The documentation is mysteriously silent on this, except for this…
ajyang818
  • 495
  • 1
  • 5
  • 16
3
votes
1 answer

Google Slides: Select a slide from Apps Script

I'm trying to select a newly created slide with the API call selectAsCurrentPage() (using Google Apps Script): var slide = SlidesApp.getActivePresentation().appendSlide(SlidesApp.PredefinedLayout.TITLE_AND_BODY); slide.selectAsCurrentPage(); But it…
Dominik Palo
  • 2,873
  • 4
  • 29
  • 52
3
votes
1 answer

Google Slides: Create a multiline paragraph from Google Apps Script

I'm trying to insert multiple lines into a paragraph using the setText() method, but all newline characters \n are converted to new paragraphs (as when you press Enter in the editor) instead of new lines in a single paragraph (as when you press…
Dominik Palo
  • 2,873
  • 4
  • 29
  • 52
3
votes
1 answer

Slide Page Ids are undefined Google Slides API (res.data.slides.objectId)

I am trying to list all of the slide object id's in a given presentation. However, res.data.slides.objectId always come back as undefined. Code: slides.presentations.get({ presentationId: id, }, (err, res) => { if (err) return error(err); …
Arkin Solomon
  • 592
  • 1
  • 5
  • 23
3
votes
1 answer

Error: Invalid value at 'requests[0]' (oneof), oneof field 'kind' is already set. Cannot set 'createShape'

I am working with the google slides API and attempting to make a slide based on user inputted text. This is my text creating function, var num = 1; function createSlide(auth) { //AUTHENTICATION const slides = google.slides({version: 'v1',…
Arkin Solomon
  • 592
  • 1
  • 5
  • 23
3
votes
1 answer

Google Slides API - How way change theme via API

(Sorry for my english) I have a problem when using Google Slides API. How can I choose a theme when create new presentation with Google Slides API? Thanks. 1. create a presentation function createPresentation($title) { $presentation =…
T.Thuận
  • 133
  • 7
3
votes
1 answer

Create paragraph bullets in slides using java

I'm trying to generate slide with nested bullets using Google Slides API with Java. I've followed the documentation in implementing it, However I'm getting nested bullets but not intended (nested with different bullet style coming left aligned).…
3
votes
1 answer

Create the objectIds map with variable keys for a DuplicateObject request

When creating a "duplicate object" request, the objectIds map will not let me put a variable in the emphasized portion below: var alternateSlideId = 'alternate_' + i; { duplicateObject: { objectId: alternateSlide, objectIds:…
3
votes
2 answers

Google Slides: newly inserted table not found

I´m wondering what is going on. I have two functions which both are working good when called one after one: function createTable() { var slidesPage = SlidesApp.openById('1QWRV4eQzGNNBz4SkR3WPurTL3O60oGYxQpBu63KrUoI').getSlides()[0]; var table…
sophos
  • 107
  • 3
  • 8
3
votes
1 answer

Google Apps Script - Insert image in a Google Slides Table

There are many ways to insert images to a table cell in Google Docs/Sheets, but how about Google Slides? I used Google Apps Script and found that appendImage function is not in TableCell object: Class TableCell of google apps scripts var NAME =…
Pica
  • 33
  • 1
  • 4
3
votes
5 answers

Using Google appscript to refresh tables pasted in from Google sheets into Google slides

This question here has as succinct solution for updating Google Sheets charts linked to Google slides. function onOpen() { var ui = SlidesApp.getUi(); ui.createMenu('Custom Menu') .addItem('Batch Update Charts', 'batchUpdate') …
goose
  • 2,502
  • 6
  • 42
  • 69
1 2
3
29 30