【问题标题】:How to display a Google Document inline image on HTML page?如何在 HTML 页面上显示 Google 文档内联图像?
【发布时间】:2015-06-08 15:21:25
【问题描述】:

是否可以在 Google 文档中选择插入的内联图像并将其显示在 HTML 页面上?

【问题讨论】:

  • 请提供更多信息!选择是什么意思?你期待什么?
  • 我的意思是选择:paragraph.getChild(0).asInlineImage()
  • 您可以将内嵌图像下载为 BMP、GIF、JPEG 或 PNG 格式,“image/bmp”、“image/gif”、“image/jpeg”或“image/”中的任何一种格式png' 使用方法getAs(contentType)。然后您可以将该文件包含在 HTML 页面中。希望有帮助!
  • 除了下载之外还有其他方法吗(可以发送到 Google Drive)?

标签: html google-apps-script google-docs google-docs-api


【解决方案1】:

您也可以getBlob() 然后使用createFile(BlobSource) 在云端硬盘文件夹中插入文件

希望有帮助!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-07
    • 2017-07-23
    • 2019-10-01
    • 2015-08-05
    • 2014-08-17
    • 2012-12-13
    相关资源
    最近更新 更多