使用Google Apps脚本修改图形 [英] Modifying a drawing using Google Apps Script

查看:143
本文介绍了使用Google Apps脚本修改图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人找到使用Google Apps Script创建或更改图形的支持?我浏览了 Google文档,但我没有看到任何课程绘图。我发现了如何构建用户界面元素,但不是绘图。



我想将图画作为文档或电子表格的一部分,但是独立绘图就足够了。

解决方案

我得到了一个有关相关问题的答案,它是足以用作此问题的解决方法。您可能无法直接通过代码修改Google图纸,但可以生成 Windows图元文件图像 a>,然后按照 Google文档博客



直至我的功能请求已完成,这是必须要做的。

更新



您现在可以通过 Google幻灯片API 。如果您想要Google图纸,文档或工作表中的图片,可以将其复制到那里。


Has anyone found support for creating or changing a drawing using Google Apps Script? I've looked through the Google documentation, but I don't see any classes for drawing. I found out how to build user interface elements, but not drawings.

I'd like to have the drawing as part of a document or spreadsheet, but a stand-alone drawing would be good enough.

解决方案

I got an answer on a related question that is good enough to use as a workaround for this question. You may not be able to modify a Google Drawing directly through code, but you can generate a Windows Metafile image and then upload that to a Google Drawing as described on the Google Docs blog.

Until my feature request is completed, this will have to do.

Update

You can now create drawings through the Google Slides API. If you want that in a Google Drawing, Doc, or Sheet, you can copy it there.

这篇关于使用Google Apps脚本修改图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆