通过 Google Apps 脚本将图像添加到 Google 文档
如何通过 Google Apps 脚本将图像添加到 Google 文档(不是电子表格或演示文稿)。我没有看到 addImage 方法。当然,团队不会忽略这一点。
http://code.google.com/googleapps/appsscript/class_document.html
How can you add images to a Google Document (not Spreadsheet or Presentation) via Google Apps Script. I don't see an addImage method. Surely the team would not have left this out.
http://code.google.com/googleapps/appsscript/class_document.html
来自文档:
http://code.google.com/googleapps/appsscript/class_documentapp_listitem.html#appendInlineImage< /a>
我不确定您是否可以上传图片。但您确实可以通过 url 将其插入段落中。
From the docs:
http://code.google.com/googleapps/appsscript/class_documentapp_listitem.html#appendInlineImage
I'm not sure if you can upload an image. But you sure can insert it into a Paragraph via a url.