python - 使用 Google Docs API v1 的 insertInlineImage(),我可以将对象大小设置为实际图像大小的百分比吗?
问题描述
Google Docs V1 API 有insertInlineImage
端点。该端点采用以下结构:
{
'insertInlineImage': {
'location': {
'index': 1215
},
'uri': url,
'objectSize': {
'height': {
'magnitude': 500,
'unit': 'PT'
},
'width': {
'magnitude': 500,
'unit': 'PT'
}
}
}
}
有没有办法让我将单位类型更改为原始图像大小/尺寸的缩放或百分比因子,而不是使用点?IE 我希望图像大小为 50%。
更新: 链接到实际文档:https ://developers.google.com/docs/api/how-tos/images#python
解决方案
推荐阅读
- node.js - 向服务器发送数据的无限循环
- javascript - 将单词自动替换为链接
- api - 使用 POST 通过 Perl 上传文件并将其编码为 multipart/form-data,同时还在标头中维护 API 密钥
- yaml - yaml 锚和别名 - 部分覆盖
- javascript - 为什么 react 不显示从外部库导入的 svg?
- qt - 如何使用 Qt 对象测试一个类
- javascript - npm install 无法解析依赖树
- python - How can I use multiple inheritance to compose Django forms?
- c - 从文本中获取行并放入链表
- c++ - 将并行执行策略与 std::back_inserter 一起使用是否安全?