Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
What This Skill Does
Flattens a PDF into a non-interactive version by removing scripts, form fields, and other active elements. Uploads the file to the Cross-Service Solutions API, polls for job completion, and returns a download URL for the sanitized document.
Automates a multi-step upload-poll-download cycle against a dedicated flattening API, eliminating manual use of print-to-PDF workarounds that don't reliably strip all interactive elements.
When to use it
- Sanitizing PDF attachments before forwarding to clients
- Stripping form fields from contracts before archiving
- Removing scripts from third-party PDFs before internal distribution
- Preparing PDFs for read-only sharing where editing must be prevented
- Converting interactive PDFs to static versions for compliance workflows
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: flatten this contract.pdf and give me a safe version
- 1Read the PDF file from the user
- 2Upload the file to POST /api/41 as multipart/form-data using the API key as a Bearer token
- 3Poll GET /api/<job_id> until the status indicates completion
- 4Extract the download URL from output.files[0].path
- 5Return the job ID, status, and download URL to the user
{"job_id": 4101, "status": "done", "download_url": "https://.../safe.pdf", "file_name": "safe.pdf"}
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.