主题
pdf盖章【金格本地签章】
接口说明
请求URL:http[s]://{网关地址}/stampPdf
请求方式: POST
请求内容类型: application/json
响应内容类型: application/json
请求说明
请求体
| 字段名 | 参数名 | 必填 | 类型 | 描述 |
|---|---|---|---|---|
| 厂商 | firm | 是 | String | kg |
| 具体的签名方式 | maskDetailType | 是 | String | local |
| 被盖章的文件地址 | originalFileUrl | 是 | String | 原始文件的下载地址 |
| 金格本地key文件的下载地址 | kgLocalKey | 是 | String | 金格本地key文件的下载地址 |
| 章离左页面的距离 | kgLeft | int | ||
| 章离下页面的距离 | kgBottom | int | ||
| 盖章的页数 | kgSite | String | FIRST(第一页) LAST(最后一页) ALL(全部) ODD(奇数页) EVEN(偶数页) |
请求示例
json
{
"firm": "kg",
"maskDetailType": "local",
"originalFileUrl": "http://localhost:8080/static/file/test.pdf",
"kgLocalKey": "http://localhost:8080/static/file/test.pdf",
"kgLeft": 0,
"kgBottom": 0,
"kgSite": "FIRST"
}1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
响应说明
响应体
Stream
错误码
Demo
js
/**
* @type {import('vitepress').UserConfig}
*/
const config = {
// ...
}
export default config1
2
3
4
5
6
7
8
2
3
4
5
6
7
8

