make-pdf-safe
Purpose
This skill creates a “safe” PDF by converting the document into a single flattened layer without active functionality. The goal is to reduce risk from interactive PDF features.
In practical terms, the output PDF is intended to:
- - remove or neutralize interactive elements (e.g., scripts/actions),
- prevent editing of underlying objects/content structure,
- behave like a flattened document layer (similar to a “print” representation).
This skill:
1) accepts a PDF file from the user,
2) uploads it to the Solutions API,
3) polls the job status until it is finished,
4) returns the download URL for the “safe” flattened PDF.
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 make-safe job:
- - INLINECODE2
- INLINECODE3 parameters:
-
file — required — PDF file
Get result by ID:
When done, the response contains:
- -
output.files[] with { name, path } where path is a downloadable URL.
Inputs
Required
- - PDF file (binary)
- API key (string)
Optional
Output
Return a structured result:
- -
job_id (number) - INLINECODE10 (string)
- INLINECODE11 (string, when done)
- INLINECODE12 (string, when available)
Example output:
```json
{
"job_id": 4101,
"status": "done",
"download_url": "https://.../safe.pdf",
"file_name": "safe.pdf"
}
make-pdf-safe
目的
该技能通过将文档转换为单一扁平化图层(无活动功能)来创建“安全”PDF。目标是降低交互式PDF功能带来的风险。
实际应用中,输出的PDF旨在:
- - 移除或中和交互元素(例如脚本/操作),
- 防止对底层对象/内容结构进行编辑,
- 表现为扁平化的文档图层(类似于“打印”表示形式)。
该技能:
1) 接收用户提供的PDF文件,
2) 将其上传至Solutions API,
3) 轮询任务状态直至完成,
4) 返回“安全”扁平化PDF的下载URL。
凭证
API需要使用作为Bearer令牌的API密钥:
用户获取API密钥的方式:
- - https://login.cross-service-solutions.com/register
- 或用户可直接提供API密钥。
规则: 切勿回显或记录API密钥。
API端点
基础URL:
- - https://api.xss-cross-service-solutions.com/solutions/solutions
创建make-safe任务:
- - POST /api/41
- multipart/form-data参数:
- file — 必填 — PDF文件
通过ID获取结果:
完成后,响应包含:
- - output.files[],包含{ name, path },其中path为可下载的URL。
输入
必填
可选
输出
返回结构化结果:
- - jobid(数字)
- status(字符串)
- downloadurl(字符串,完成后)
- file_name(字符串,可用时)
输出示例:
json
{
job_id: 4101,
status: done,
download_url: https://.../safe.pdf,
file_name: safe.pdf
}