javascript - 创建带页脚的谷歌文档
问题描述
我正在尝试使用页脚创建谷歌文档。但作为回应,我只有身体
这是我的带有页脚和标题的代码
gapi.client.docs.documents.create({
"title": "Test document creating",
"footers": {
"footer.qwe": {
"footerId": "footer.qwe",
"content": [
{
"endIndex": 2,
"paragraph": {
"elements": [
{
"endIndex": 2,
"textRun": {
"content": "test\n",
"textStyle": {}
}
}
],
"paragraphStyle": {
"namedStyleType": "NORMAL_TEXT",
"direction": "LEFT_TO_RIGHT"
}
}
}
]
}
}
})
作为回应,只有空的正文,没有任何页脚元素
解决方案
推荐阅读
- html - 带有形状 div 的 CSS 部分布局
- javascript - 如果不可能,如何使用 Html 按钮或替代方法执行 NodeJS 服务器客户端?
- json - 如何排除指定关键字的结果
- c++ - push_back 给出问题的宏
- sql - 将参数传递给函数;子查询返回超过 1 个值。这是不允许的
- python - 随机森林回归器中的 LabelEncoder 与 onehot 编码
- node.js - 如何更改目录。Multer/express.js
- python - 如何使用 Python 的 matplotlib 绘制地图,以便也包括小岛国?
- java - 如何在链接列表中的另一个数据之前插入数据?
- java - NoSuchMethodError:org.docx4j.org.apache.xml.serializer.SerializerFactory.getSerializer