TopRank Skills

Home / Claw Skills / Autres / password-protect-pdf
Official OpenClaw rules 15%

password-protect-pdf

Add password protection to a PDF by uploading it to the Solutions API, polling until completion, then returning a download URL for the protected PDF.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 password-protect-pdf 技能。 若已安装,则直接安装 password-protect-pdf 技能。

Overview

Skill Key
crossservicesolutions/password-protect-pdf
Author
crossservicesolutions
Source Repo
openclaw/skills
Version
-
Source Path
skills/crossservicesolutions/password-protect-pdf
Latest Commit SHA
c7810770b392234ef46c0e1179abdeaa279826a0

Extracted Content

SKILL.md excerpt

# password-protect-pdf

## Purpose
This skill password-protects a PDF by:
1) accepting a PDF file from the user,
2) accepting a 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 password-protected PDF.

## Credentials
The API requires an API key used as a Bearer token:
- `Authorization: Bearer <API_KEY>`

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:
- `https://api.xss-cross-service-solutions.com/solutions/solutions`

Create password-protect job:
- `POST /api/32`
- `multipart/form-data` parameters:
  - `file` (PDF-Datei) — required — PDF file
  - `userPass` (Passwort) — required — string password

Get result by ID:
- `GET /api/<ID>`

When done, the response contains:
- `output.files[]` with `{ name, path }` where `path` is a downloadable URL.

## Inputs
### Required
- PDF file (binary)
- Password (`userPass`, string)
- API key (string)

### Optional
- None

## Output
Return a structured result:
- `job_id` (number)
- `status` (string)
- `download_url` (string, when done)
- `file_name` (string, when available)

Example output:
```json
{
  "job_id": 321,
  "status": "done",
  "download_url": "https://.../protected.pdf",
  "file_name": "protected.pdf"
}

README excerpt

---

## `README.md`

```md
# password-protect-pdf (OpenClaw Skill)

Add password protection to a PDF using the Solutions API and return a download URL for the protected file.

## What you need
- A PDF file
- A password (will be used as `userPass`)
- A Solutions API key (Bearer token)
  - Register / get key: https://login.cross-service-solutions.com/register

## How it works
1) Upload PDF + password to:
   `POST https://api.xss-cross-service-solutions.com/solutions/solutions/api/32`
2) Poll:
   `GET  https://api.xss-cross-service-solutions.com/solutions/solutions/api/<job_id>`
3) Return `output.files[0].path` as the download URL

## Script (CLI)
```bash
python scripts/password_protect_pdf.py \
  --pdf "/path/to/file.pdf" \
  --password "YourPasswordHere" \
  --api-key "$SOLUTIONS_API_KEY"

Related Claw Skills