Package | Description |
---|---|
com.tencentcloudapi.ess.v20201111 | |
com.tencentcloudapi.ess.v20201111.models |
Modifier and Type | Method and Description |
---|---|
CreateDocumentResponse |
EssClient.CreateDocument(CreateDocumentRequest req)
创建签署流程电子文档
适用场景:见创建签署流程接口。
注:该接口需要给对应的流程指定一个模板id,并且填充该模板中需要补充的信息。是“发起流程”接口的前置接口。
【动态表格传参说明】
当模板的 ComponentType='DYNAMIC_TABLE'时(渠道版或集成版),FormField.ComponentValue需要传递json格式的字符串参数,用于确定表头&填充动态表格(支持内容的单元格合并)
输入示例1:
```
{
"headers":[
{
"content":"head1"
},
{
"content":"head2"
},
{
"content":"head3"
}
],
"rowCount":3,
"body":{
"cells":[
{
"rowStart":1,
"rowEnd":1,
"columnStart":1,
"columnEnd":1,
"content":"123"
},
{
"rowStart":2,
"rowEnd":3,
"columnStart":1,
"columnEnd":2,
"content":"456"
},
{
"rowStart":3,
"rowEnd":3,
"columnStart":3,
"columnEnd":3,
"content":"789"
}
]
}
}
```
输入示例2(表格表头宽度比例配置):
```
{
"headers":[
{
"content":"head1",
"widthPercent": 30
},
{
"content":"head2",
"widthPercent": 30
},
{
"content":"head3",
"widthPercent": 40
}
],
"rowCount":3,
"body":{
"cells":[
{
"rowStart":1,
"rowEnd":1,
"columnStart":1,
"columnEnd":1,
"content":"123"
},
{
"rowStart":2,
"rowEnd":3,
"columnStart":1,
"columnEnd":2,
"content":"456"
},
{
"rowStart":3,
"rowEnd":3,
"columnStart":3,
"columnEnd":3,
"content":"789"
}
]
}
}
```
表格参数说明
| 名称 | 类型 | 描述 |
| ------------------- | ------- | ------------------------------------------------- |
| headers | Array | 表头:不超过10列,不支持单元格合并,字数不超过100 |
| rowCount | Integer | 表格内容最大行数 |
| cells.N.rowStart | Integer | 单元格坐标:行起始index |
| cells.N.rowEnd | Integer | 单元格坐标:行结束index |
| cells.N.columnStart | Integer | 单元格坐标:列起始index |
| cells.N.columnEnd | Integer | 单元格坐标:列结束index |
| cells.N.content | String | 单元格内容,字数不超过100 |
表格参数headers说明
| 名称 | 类型 | 描述 |
| ------------------- | ------- | ------------------------------------------------- |
| widthPercent | Integer | 表头单元格列占总表头的比例,例如1:30表示 此列占表头的30%,不填写时列宽度平均拆分;例如2:总2列,某一列填写40,剩余列可以为空,按照60计算。;例如3:总3列,某一列填写30,剩余2列可以为空,分别为(100-30)/2=35 |
| content | String | 表头单元格内容,字数不超过100 |
|
Constructor and Description |
---|
CreateDocumentRequest(CreateDocumentRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Copyright © 2022. All rights reserved.