公共 OpenAPIPDF
GET
/openapi/v1/pdf/get_capabilities返回支持的 PDF 操作、并发限制、队列容量和结果保留时间。
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Response Body
application/json
curl -X GET "https://example.com/openapi/v1/pdf/get_capabilities"{ "code": 0, "message": "获取 PDF 能力列表成功", "data": { "max_upload_bytes": 104857600, "max_concurrency": 2, "heavy_concurrency": 1, "queue_capacity": 20, "result_ttl_seconds": 3600, "operations": [ { "operation": "optimize", "description": "优化 PDF,清理冗余资源", "result": "pdf", "performance": "高 CPU/内存,图片型 PDF 更重", "heavy": true } ] }, "time": 1779502528}Empty
Empty
Empty
星座运势 GET
查询今日星座运势。
创建 PDF 处理任务 POST
上传 PDF 并创建异步处理任务。单个任务上传文件总大小不能超过 100 MiB。 ## 文件要求 - 除 `merge` 外,每个任务必须且只能上传一个 `file` PDF。 - `merge` 使用重复的 `file` 或 `files` 字段上传 2-20 个 PDF,按上传顺序合并。 - `form_fill` 还必须通过 `data` 上传一个 JSON 文件。 ## 操作参数 - `trim` 必须提供 `pages`。 - `watermark` 必须提供 `watermark_text`。 - `encrypt` 必须提供 `owner_password`。 - `pages` 使用 pdfcpu 页面选择语法,例如 `1-3,5`、`odd` 或 `even`。