

To remove the borders, right-click on the table and select "Table properties.".Type your caption in the row below, and adjust the font and size as needed.Drag or insert your image into the row above.Click "Insert" > "Table" and choose a "1 x 2" table to give you one column and two rows.Click where you want to add the image to your document.Insert a table and add caption text within it If you need to edit the image, follow a similar process by clicking "Insert" > "Drawing" > "New" > "Edit." The caption will be saved with the image, and you can move it to any position you desire.Customize the font and other features to your liking. Click on the text box and move it to the position where you want the caption to appear.Choose "New" and click "Image" to upload the image you want to add a caption to.Click where you want to add the caption.When you want to run the script using the trigger, please use the installable trigger.So please modify this for your actual situation.

This script is a simple sample script for explaining this workaround.When this script is run, the following result is obtained. function myFunction() Ĭonst url = (/=s\d+/, "=s" + size.width) Ĭonst resultBlob = UrlFetchApp.fetch(url).getBlob().setName("Result_" + file.getName()) ĭriveApp.getFileById(presentationId).setTrashed(true) Because when the image on Spreadsheet is retrieved, the process cost becomes high. In this script, the image on Google Drive is used. Sample script.īefore you use this script, please set the fileId, sheet name, and cell range. Please enable Drive API at Advanced Google services. Please install 2 Google Apps Script libraries as follows. In this case, the existing image is replaced.īy this flow, I thought that your goal might be able to be achieved. Put the image blob to the Spreadsheet.Retrieve the image and texts as an image blob.Put the image on the slides and put the text retrieved from the cell of the Spreadsheet.Create a new Google Slides with a specific size.Using these libraries, the following flow is run. So, as a workaround, in your situation, how about using this method? In this method, 2 Google Apps Script libraries are used. Unfortunately, I think that your goal cannot be directly achieved using the existing methods of Spreadsheet services.
