Cannot create a presentation with PageSize on Google Slides API

前端 未结 1 1189
甜味超标
甜味超标 2021-01-13 18:25

I\'m trying to create a new 4:3 presentation, not 16:9.

I read this reference and write some ruby codes, but it didn\'t work. The new presentation\'s height is diffe

1条回答
  •  伪装坚强ぢ
    2021-01-13 19:00

    I found a workaround for this problem.

    1. Create a new presentation. We use this as a template.
    2. Change PageSize as you like. See: Change the size of your slides - Docs editors Help
    3. Copy the presentation via Google Drive API. See: Files: copy  |  Drive REST API  |  Google Developers

    Then, we get a new presentation. Though we can't decide PageSize dynamically, this works fine for me.

    0 讨论(0)
提交回复
热议问题