【发布时间】:2018-10-14 18:40:59
【问题描述】:
我需要使用 Google Apps 脚本,而不是 API。
- 我创建了一个空演示文稿
- 似乎新创建的演示文稿默认总是包含一张空白幻灯片
- 我在演示文稿中插入了一张幻灯片(取自其他 prez)。
-> 我想删除这张空幻灯片,以便演示文稿只包含我粘贴到其中的幻灯片。
我的代码:
var presentation = SlidesApp.create("my new presentation"); // creates an empty slide in the prez
presentation.insertSlide(0,slides.pop()); // a slide from a deck of slides collected elsewhere
presentation.getSlides().pop(); // here trying to delete the empty slide, doesn't work: the slide remains in the presentation.
presentation.saveAndClose();
【问题讨论】:
-
我在评论中详细阐述了问题描述。
标签: arrays google-apps-script google-slides