https://api.xlongwei.com/service/pdf/seal.json
购买地址:ShowApi
参数 | 类型 | 说明 |
---|---|---|
url | String | pdf网址,要求外网可访问 |
byte[] | pdf上传(优先处理url参数) | |
base64 | String | pdf字节转码 |
name | String | 名称,水平文字,例如:合同专用章 |
company | String | 公司,上弦文 |
license | String | 营业执照,下弦文,可选 |
page | int | 页码,默认1表示首页,0表示全部页,-1表示末页 |
x | int | 位置x,左下角为原点 |
y | int | 位置y,左下角为原点 |
height | int | 印章高度,默认120 |
字段 | 示例 |
---|---|
url | pdf网址 |
domain | http://cms.xlongwei.com/uploads/temp/ |
path | pdf/20150623_1441094690481.pdf |
base64 | pdf字节转码 |
url=domain+path,可用于下载PDf文档,后续接口都是这个响应格式。
示例文档地址:http://tool.xlongwei.com/uploads/docs/2_1458900754559.pdf
Demo演示
https://api.xlongwei.com/service/pdf/seal.json
参数 | 类型 | 说明 |
---|---|---|
url | String | pdf网址,要求外网可访问 |
byte[] | pdf上传(优先处理url参数) | |
base64 | String | pdf字节转码 |
person | String | 姓名,水平文字,例如:张三 |
page | int | 页码,默认1表示首页,0表示全部页,-1表示末页 |
x | int | 位置x,左下角为原点 |
y | int | 位置y,左下角为原点 |
height | int | 印章高度,默认32 |
http://cms.xlongwei.com/service/pdf/seal.json
参数 | 类型 | 说明 |
---|---|---|
url | String | pdf网址,要求外网可访问 |
byte[] | pdf上传(优先处理url参数) | |
base64 | String | pdf字节转码 |
seals | String | 多个印章配置的JSON串 |
seals字段:
[{name,company,license,page,x,y,height},{person,page,x,y,height}]
seals示例:
[{'name':'合同专用章','company':'重庆某某贸易有限公司','license':'123456789'}, {'person':'张三','y':'240'},{'person':'李四五','y':'360'}, {'name':'拨款专用章','company':'重庆某某金融公司','license':'ABCSDE789','y':'420'}]
特殊说明:
height:印章高度(单位印章实际是方形,个人印章宽度自适应,印章根据height按比例缩放)
page:0表示全部,1表示首页,-1表示尾页(-2表示倒数第二页)
https://api.xlongwei.com/service/pdf/sealImage.json
参数 | 类型 | 说明 |
---|---|---|
person | String | 个人印章姓名 |
name | String | 名称,水平文字,例如:合同专用章 |
company | String | 公司,上弦文 |
license | String | 营业执照,下弦文,可选 |
字段 | 示例 |
---|---|
image | 印章图片base64 |
PDF电子签名:仅作参考
http://cms.xlongwei.com/pdf/encrypt.json
url | pdf网址 |
pdf上传 | |
pass | 密码 |
http://cms.xlongwei.com/pdf/decrypt.json
url | pdf网址 |
pdf上传 | |
pass | 密码 |
http://cms.xlongwei.com/pdf/merge.json
pdfs | pdf网址,逗号分隔 |
smart | 默认false,true智能合并可减小体积 |
pdf1 | pdf上传 |
pdf2 | pdf上传,依次支持到pdfN,序号要求连续 |