google-slides

Google Apps Script Custom Menu / createMenu not displaying in Slide when presentation opens

旧城冷巷雨未停 提交于 2021-02-11 14:41:48
问题 Does createMenu work differently for slides than it does for spreadsheets? Is this a bug or is something wrong with my code? Should it be reported? SIMPLE TEST - - - - - - - DOES NOT CREATE MENU ON OPEN FROM DRIVE OR REFRESH function onOpen() { console.log('In onOpen' ); const pres = SlidesApp.getActivePresentation(); const slideSet = pres.getSlides(); let ui; try { ui = SlidesApp.getUi(); console.log('getUi succeeded' ); } catch (e) { console.log('caught in getUi: ', e ); } try { ui

Embed an iFrame Tweet into Google Slides

落花浮王杯 提交于 2021-02-08 14:14:19
问题 Hello I tried to embed this HTML code into a Google Slide but I am encountering problems, does anyone know how to do so? <iframe width="100%" height="300" src="//jsfiddle.net/p0rkboi/hy31kr0a/7/embedded/" allowfullscreen="allowfullscreen" allowpaymentrequest frameborder="0"></iframe> 回答1: Unfortunately at this time you can not do that. However Google is constantly updating this stuff, so it may be possible in the future. But Here you can use http://slides.com/. You can add iframe in your

Embed an iFrame Tweet into Google Slides

依然范特西╮ 提交于 2021-02-08 14:13:40
问题 Hello I tried to embed this HTML code into a Google Slide but I am encountering problems, does anyone know how to do so? <iframe width="100%" height="300" src="//jsfiddle.net/p0rkboi/hy31kr0a/7/embedded/" allowfullscreen="allowfullscreen" allowpaymentrequest frameborder="0"></iframe> 回答1: Unfortunately at this time you can not do that. However Google is constantly updating this stuff, so it may be possible in the future. But Here you can use http://slides.com/. You can add iframe in your

Can I use Slides API to add an “Agree to Terms” dialogue before allowing viewer access to a Slides presentation?

浪子不回头ぞ 提交于 2021-01-29 10:16:23
问题 I have a Google Slides presentation that I'd like to gate with a request to agree to "Terms & Conditions" before viewing. (The dialogue box would include an external link to the legal fine print.) I see that with Google App Script adding a dialogue box is possible, but if one can be customized in this manner is unclear to me. Thanks in advance for any help on this. 回答1: You want to open a dialog, when users open the Google Slides. In this case, users are logged in to each Google account. You

How can I embed google slides with the controls bar separated from the iframe view?

馋奶兔 提交于 2021-01-29 09:00:05
问题 I want to embed Google Slides in my web page, but separate the controls bar from the view itself. I know that I can hide them with ?rm=minimal - but I still want to render them, just in a different section in my web page, outside of the embedded iframe. How can I do that? does it require a CSS hack? 来源: https://stackoverflow.com/questions/65506857/how-can-i-embed-google-slides-with-the-controls-bar-separated-from-the-iframe-vi

Would it be possible to crop image using google app script without using any third party api

人盡茶涼 提交于 2021-01-28 06:06:11
问题 I want to crop an image with Google App Script if an image outside the page frame, but as far as I checked in Google App Script documentation and I could not find a way to crop the image. pageElements.asImage().replace (imgBlob, true); it is not allowed to pass cropping dimensions as parameters in .replace() to crop a image. i know this can be achieved using a custom API , passing the image blob and crop area that will call cropping method on another server. But how it will be possible to

Can Google Slide modalDialog HTML javascript run server-side code? Environment Apps Script

眉间皱痕 提交于 2021-01-27 22:51:19
问题 https://developers.google.com/apps-script/guides/html/reference/run https://developers.google.com/apps-script/guides/html/communication Do not list slides. Alerts in my code show the javascript running but not the server side code. <!DOCTYPE html> <html> <head> <base target="_top"> <style> ... removed CSS for simplicity </style> </head> <body> <div id="parent"> <div id="child"> <?!= nextQuestion ?> <p></p> <input type="button" value="Okay!" id="subBut" /> <input type="button" value="Not quite

Google Suite - Apps Script - Download Slides as PNG files via API

人盡茶涼 提交于 2020-11-30 00:17:15
问题 Good Morning All. I have written a short script which batch-creates [single page] Google Slides based on rows from a spreadsheet. While in the loop for each creation, I would like to create a PNG of the Slide in Google Drive (or download on the user's desktop). These pictures should be the same specs as if a user clicked File>Download>PNG - the heavy small text requires full projector HD - so I don't believe I can use the "Thumbnail" function which appears limited to 1600 pixels. My code

Google Suite - Apps Script - Download Slides as PNG files via API

别说谁变了你拦得住时间么 提交于 2020-11-30 00:11:30
问题 Good Morning All. I have written a short script which batch-creates [single page] Google Slides based on rows from a spreadsheet. While in the loop for each creation, I would like to create a PNG of the Slide in Google Drive (or download on the user's desktop). These pictures should be the same specs as if a user clicked File>Download>PNG - the heavy small text requires full projector HD - so I don't believe I can use the "Thumbnail" function which appears limited to 1600 pixels. My code

Google Suite - Apps Script - Download Slides as PNG files via API

人走茶凉 提交于 2020-11-30 00:09:38
问题 Good Morning All. I have written a short script which batch-creates [single page] Google Slides based on rows from a spreadsheet. While in the loop for each creation, I would like to create a PNG of the Slide in Google Drive (or download on the user's desktop). These pictures should be the same specs as if a user clicked File>Download>PNG - the heavy small text requires full projector HD - so I don't believe I can use the "Thumbnail" function which appears limited to 1600 pixels. My code