remove-password-from-pdf
Purpose
This skill removes password protection from a PDF by:
1) accepting a password-protected PDF from the user,
2) accepting the current password from the user,
3) uploading both to the Solutions API,
4) polling the job status until it is finished,
5) returning the download URL for the unlocked 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 remove-password job:
- - INLINECODE2
- INLINECODE3 parameters:
-
file (PDF-Datei) — required — PDF file
-
password (Password) — required — string (current password to unlock)
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)
- Current password (
password, string) - API key (string)
Optional
Output
Return a structured result:
- -
job_id (number) - INLINECODE12 (string)
- INLINECODE13 (string, when done)
- INLINECODE14 (string, when available)
Example output:
```json
{
"job_id": 654,
"status": "done",
"download_url": "https://.../unlocked.pdf",
"file_name": "unlocked.pdf"
}
remove-password-from-pdf
目的
该技能通过以下步骤移除PDF文件的密码保护:
1) 接收用户提供的受密码保护的PDF文件,
2) 接收用户提供的当前密码,
3) 将两者上传至Solutions API,
4) 轮询任务状态直至完成,
5) 返回解锁后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/33
- multipart/form-data 参数:
- file (PDF文件) — 必填 — PDF文件
- password (密码) — 必填 — 字符串(用于解锁的当前密码)
通过ID获取结果:
任务完成后,响应包含:
- - output.files[] 包含 { name, path },其中 path 为可下载的URL。
输入
必填
- - PDF文件(二进制)
- 当前密码(password,字符串)
- API密钥(字符串)
可选
输出
返回结构化结果:
- - jobid(数字)
- status(字符串)
- downloadurl(字符串,任务完成时)
- file_name(字符串,可用时)
示例输出:
json
{
job_id: 654,
status: done,
download_url: https://.../unlocked.pdf,
file_name: unlocked.pdf
}