在 Google 幻灯片 API 中是否有更新页面设置大小的已知方法?

Is there a known way to update the page setup size In the Google Slides API?

我一直在查看 Google 幻灯片 API 文档。我只能找到一种更新元素大小的方法。我想要做的是将页面设置大小更新为宽屏 16:10.

我看过这个 documentation and this 但这只是引用页面元素,而不是幻灯片本身。是否有任何首选或建议的方法来执行此操作?

这些链接指向 Google Apps 脚本幻灯片服务文档(称为 内置 服务)。它使您可以访问 Google 幻灯片 API 的某些功能,但不是全部。您需要的是 advanced slides service, which is a direct analog of the Google Slides API. To use them effectively read the Advanced Google Services 指南以获取更多信息。

您可以使用高级服务 (see reference documentation) 在创建 时设置演示文稿的页面大小。但是,如果您的演示文稿具有高宽高比,则您的演示文稿可能是信箱(顶部和底部用黑框填充)。

该问题有解决方法。创建模板演示文稿,对其进行修改,然后使用 Google Drive API 进行复制。在此处查看更多详细信息