Google Apps Script getWidth() for document table cell width returns null
问题 I'd like to insert image in the Google document by using Google Apps Script, and to spread it (the image) to the width of the page - margins or to insert it in the table cell and spread it to the width of the cell. The code goes like this: var image = DriveApp.getFileById(fileId).getBlob(); var insertPlace = body.findText(searchText).getElement(); insertPlace.asText().setText(""); var insertedImage = insertPlace.getParent().asParagraph().insertInlineImage(0, image); var h = insertedImage