主题
pdf盖章【北京CA-客户端自定义签章规则进行签章(坐标定位)】
接口说明
请求URL:http[s]://{网关地址}/stampPdf
请求方式: POST
请求内容类型: application/json
响应内容类型: application/json
请求说明
请求体
| 字段名 | 参数名 | 必填 | 类型 | 描述 |
|---|---|---|---|---|
| 厂商 | firm | 是 | String | bjCa |
| 具体的签名方式 | maskDetailType | 是 | String | signByParam |
| 被盖章的文件地址 | originalFileUrl | 是 | String | 原始文件的下载地址 |
| ca印章的下载地址 | sealUrl | 是 | String | ca章的下载地址 |
| 章离左页面的距离 | caLeft | int | ||
| 章离下页面的距离 | caBottom | int | ||
| 盖章的页数 | caSite | String | FIRST(第一页) LAST(最后一页) ALL(全部) ODD(奇数页) EVEN(偶数页) | |
| 印章图片宽度 | sealWidth | 否 | float | |
| 印章图片高度 | sealHeight | 否 | float | |
| 签名证书序列号 | certSn | 否 | String | |
| 是否打印印章 | isPrintSeal | 否 | boolean | 不传值默认为true |
| 硬章编号 | ruleNum | 否 | String |
请求示例
json
{
"firm": "kg",
"maskDetailType": "signByParam",
"originalFileUrl": "http://localhost:8080/static/file/test.pdf",
"signatureUrl": "http://localhost:8080/static/file/test.pdf",
"sealUrl": "http://localhost:8080/static/file/test.pdf",
"caLeft": 0,
"caBottom": 0,
"caSite": "ALL",
"sealWidth": 0,
"sealHeight": 0,
"certSn": "123456789",
"isPrintSeal": true,
"ruleNum": "123456789"
}1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
响应说明
响应体
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

