Compress PDF for Openclaw

A professional-grade skill for AI agents to compress PDF documents through the Cross-Service-Solutions API with granular quality controls.

crossservicesolutions
v1.0.0
Feb 8, 2026
1
2.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install compress-pdf

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install compress-pdf using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Compress PDF?

The Compress PDF skill empowers your AI agent to handle document optimization tasks by interfacing directly with the Cross-Service-Solutions (XSS) infrastructure. As a versatile addition to the library of Openclaw Skills, it automates the resource-heavy task of shrinking large PDF files without requiring local processing power.

This skill is particularly useful for developers and teams looking to integrate seamless document workflows into their AI-driven applications. It manages the entire lifecycle of a compression job—from secure multipart file upload to asynchronous status polling and final delivery of a downloadable optimized file.

Compress PDF Use Cases

  • Shrinking oversized PDF documents for email attachments and web distribution.
  • Optimizing document storage in cloud environments to reduce costs.
  • Automated batch processing of legacy PDF archives via Openclaw Skills workflows.
  • Preparing high-resolution documents for faster mobile viewing by adjusting DPI and image quality.

How Compress PDF Works

  1. The user provides a PDF file and an API key to the agent.
  2. The skill sends a multipart/form-data POST request to the Cross-Service-Solutions compression endpoint.
  3. A background job is created, and the skill receives a unique job ID.
  4. The agent polls the status endpoint to monitor the progress of the compression task.
  5. Upon completion, the skill extracts the download URL for the compressed file and returns a structured data object to the user.

Compress PDF Setup

To utilize this within the ecosystem of Openclaw Skills, you must first obtain an API key.

# 1. Register for an account at Cross-Service-Solutions
# URL: https://login.cross-service-solutions.com/register

# 2. Configure your agent with the necessary tools
# Ensure 'http' and 'files' tools are allowed in your agent config.

# 3. Provide the API key as a Bearer token in your environment or session
export XSS_API_KEY="your_api_key_here"

Compress PDF Data Schema & Taxonomy

The skill returns a structured JSON object containing the results of the compression job. This ensures compatibility with other automated Openclaw Skills in your pipeline.

Attribute Type Description
job_id Number Unique identifier for the XSS compression task.
status String Current state of the job (e.g., "done").
download_url String The public URL to download the optimized PDF.
file_name String The original or assigned name of the processed file.
settings Object Includes the imageQuality (0-100) and dpi (72-300) used.

Compress PDF Advanced Features

  • Granular quality control allowing users to specify image quality (default 75) and DPI (default 144).
  • Robust asynchronous polling logic to handle large files that require longer processing times.
  • Secure credential management ensuring API keys are never echoed or logged.
  • Seamless integration with the broader suite of Openclaw Skills for end-to-end document management.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*