remove-metadata-from-pdf
Purpose
This skill removes metadata from one or multiple PDFs by:
1) accepting one or multiple PDF files from the user,
2) uploading them to the Solutions API,
3) polling the job status until it is finished,
4) returning download URL(s) for the cleaned file(s).
If multiple PDFs are processed, the output may include multiple PDFs and/or a ZIP for download.
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 job:
- - INLINECODE2
- INLINECODE3 parameters:
-
files — 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 (PDFs and/or ZIP).
Inputs
Required
- - One or more PDF files (binary)
- API key (string)
Optional
Output
Return a structured result:
- -
job_id (number) - INLINECODE10 (string)
- INLINECODE11 (array) containing
{ name, path } for each output file - Convenience fields:
-
download_url (string) if exactly one output exists
-
download_urls (array of strings) for all outputs
- -
input_files (array of strings)
Example output:
```json
{
"job_id": 990,
"status": "done",
"outputs": [
{ "name": "cleaned.pdf", "path": "https://.../cleaned.pdf" }
],
"download_url": "https://.../cleaned.pdf",
"download_urls": ["https://.../cleaned.pdf"],
"input_files": ["input.pdf"]
}
remove-metadata-from-pdf
目的
该技能通过以下步骤移除一个或多个PDF文件的元数据:
1) 接收用户提供的一个或多个PDF文件,
2) 将其上传至Solutions API,
3) 轮询任务状态直至完成,
4) 返回清理后文件的下载链接。
如果处理多个PDF文件,输出可能包含多个PDF文件和/或一个ZIP压缩包供下载。
凭证
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/40
- multipart/form-data 参数:
- files — 必填 — 多个PDF文件(multiple_files)
按ID获取结果:
任务完成后,响应包含:
- - output.files[] 包含 { name, path },其中 path 为可下载的URL(PDF文件和/或ZIP压缩包)。
输入
必填
- - 一个或多个PDF文件(二进制)
- API密钥(字符串)
可选
输出
返回结构化结果:
- - job_id(数字)
- status(字符串)
- outputs(数组)包含每个输出文件的 { name, path }
- 便捷字段:
- download_url(字符串)当仅有一个输出时
- download_urls(字符串数组)所有输出的下载链接
输出示例:
json
{
job_id: 990,
status: done,
outputs: [
{ name: cleaned.pdf, path: https://.../cleaned.pdf }
],
download_url: https://.../cleaned.pdf,
download_urls: [https://.../cleaned.pdf],
input_files: [input.pdf]
}