1

I am trying to use the Google Slides API for Python to allow users to add presentations to a project.
The presentations must fit a 4:3 aspect ratio due to display limitations. How can I verify a presentation is in this format?

#authentication...
service = build('slides', 'v1', credentials=creds)
presentation = service.presentations().get(
    presentationId=PRESENTATION_ID).execute()

presentation.get(...)  #what goes here?

Nat Weiland
  • 199
  • 2
  • 14

1 Answers1

-1

Please be noted that the Slides API might refactor your values:

When you create a page element, you can specify a size and transform that provide a certain visual result. However, the API may replace your provided values with other ones that yield the same visual appearance. In general, if you write a size using the API, you are not guaranteed to be returned the same size. However, you should get the same results if you take the transform into account.

However, there's another solution wherein you can use Google Apps Script to modify the page size of your Slides. You can check this SO post for more details.

Jessica Rodriguez
  • 2,899
  • 1
  • 12
  • 27