|
|
il y a 10 heures | |
|---|---|---|
| lib | il y a 3 mois | |
| static | il y a 3 mois | |
| .gitignore | il y a 3 mois | |
| README.md | il y a 10 heures | |
| add_signature.py | il y a 3 mois | |
| add_watermark.py | il y a 3 mois | |
| app.py | il y a 10 heures | |
| drag_signature.py | il y a 10 heures | |
| extract_table.py | il y a 10 heures | |
| requirements.txt | il y a 3 mois |
pdf文件处理
接口地址: /drag_signature
请求方法: POST
请求参数:
{
"pdf_url": "PDF文件URL",
"signatures": [
{
"signature_url": "签名/电子章图片URL",
"page_num": 页码(从0开始),
"x": X坐标(PDF点,相对于页面左上角),
"y": Y坐标(PDF点,相对于页面左上角),
"width": 宽度(可选,PDF点,默认43mm),
"height": 高度(可选,PDF点,默认按比例)
}
]
}
返回结果:
{
"success": true,
"pdf_url": "新生成的PDF文件URL"
}
http://localhost:6500(可在HTML中修改API地址)