merge-pdf-files
Purpose
This skill merges multiple PDFs by:
1) accepting multiple PDF files from the user,
2) uploading them to the Cross-Service-Solutions merge API,
3) polling the job status until it is finished,
4) returning the merged PDF download URL.
Credentials
The API requires an API key used as a Bearer token:
How the user gets an API key:
- - https://login.cross-service-solutions.com/register
- Or the user can provide an API key directly.
Rule: never echo or log the API key.
API endpoints
Base URL:
Create merge job:
- - INLINECODE2
- INLINECODE3 parameters:
-
files (PDF Dokument) — required — multiple PDF files (multiple_files)
Get result by ID:
When done, the response contains:
- -
output.files[] with { name, path } where path is a downloadable URL.
Inputs
Required
- - One or more PDF files (binary)
- An API key (string)
Optional
- - None (ordering is determined by the provided file list order)
Output
Return a structured result:
- -
job_id (number) - INLINECODE10 (string)
- INLINECODE11 (string, when done)
- INLINECODE12 (string, when available)
- INLINECODE13 (array of strings)
Example output:
```json
{
"job_id": 456,
"status": "done",
"download_url": "https://.../merged.pdf",
"file_name": "merged.pdf",
"input_files": ["a.pdf", "b.pdf", "c.pdf"]
}
merge-pdf-files
目的
该技能通过以下步骤合并多个PDF文件:
1) 接收用户提供的多个PDF文件,
2) 将其上传至Cross-Service-Solutions合并API,
3) 轮询任务状态直至完成,
4) 返回合并后的PDF下载链接。
凭证
API需要使用API密钥作为Bearer令牌:
用户获取API密钥的方式:
- - https://login.cross-service-solutions.com/register
- 或者用户可以直接提供API密钥。
规则: 切勿回显或记录API密钥。
API端点
基础URL:
- - https://api.xss-cross-service-solutions.com/solutions/solutions
创建合并任务:
- - POST /api/30
- multipart/form-data 参数:
- files (PDF文档) — 必填 — 多个PDF文件(multiple_files)
通过ID获取结果:
任务完成后,响应包含:
- - output.files[],包含 { name, path },其中 path 为可下载的URL。
输入
必填
- - 一个或多个PDF文件(二进制)
- API密钥(字符串)
可选
输出
返回结构化结果:
- - jobid (数字)
- status (字符串)
- downloadurl (字符串,任务完成时)
- filename (字符串,可用时)
- inputfiles (字符串数组)
输出示例:
json
{
job_id: 456,
status: done,
download_url: https://.../merged.pdf,
file_name: merged.pdf,
input_files: [a.pdf, b.pdf, c.pdf]
}