我已通过脚本将2个演示文稿合并为一个演示文稿。我遇到的问题是,合并的第二个演示文稿仍然包含与以前相同的主题。这意味着我必须将主题重新应用到整个平台上,但是我想以整体的方式完成它。我正在为此工作使用Google应用程序脚本:
function mergeGoogleDeck_Experimental(PresentationDeck_1,
PresentationDeck_2)
{
var ui = SlidesApp.getUi();
ui.alert("Running Merge Function");
var preLayout = SlidesApp.PredefinedLayout;
for (var id = 0; id < PresentationDeck_1.length; id++)
{
var slidedeck = PresentationDeck_1[id]
var PresentationTEST = SlidesApp.openById(PresentationDeck_2);
var PresentationTemplate = SlidesApp.openById(slidedeck);
var slides = PresentationTemplate.getSlides();
Logger.log('Printing array info using for loop.');
for (var index in slides)
{
Logger.log(index);
}
for (var index in slides)
{
var slide = slides[index];
var slide = PresentationTEST.appendSlide(slide);
}
}
}