# PDF Compressor (x402-deployer)

> PDF Compressor (x402-deployer) is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Compresses and reduces PDF file size using CloudConvert at three quality levels: ebook, printer, or prepress

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/pdf-compress
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-500f6ca3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0F9cbr91bxe2GiEKLXcrp

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-deployer-x402-deployer-workers-dev-500f6ca3 -d '<json body>'
```

Example prompt: Can you compress this PDF for me using printer quality — it's 15MB and needs to be small enough to email as an attachment?

## When to prefer this

Use this endpoint when you need to reduce a PDF's file size for email, web hosting, or storage, and want control over the quality/size tradeoff via three distinct compression presets. Ideal when the PDF needs to remain a PDF (not converted to another format). Choose ebook for maximum compression, printer for balanced quality, prepress when archival fidelity matters most.

## Known failure modes

- Invalid or corrupted PDF input — returns error indicating unparseable file
- Unsupported quality level value — returns validation error with accepted enum values
- File too large or timeout — CloudConvert processing exceeds time limit
- Payment failure — x402 payment of $0.005 USDC not authorized
- Network error reaching CloudConvert backend — returns upstream error

## How this service works

PDF compressor / shrink PDF / PDF size reducer / smaller PDF for email. Three quality levels: ebook (lowest, web-quality), printer (medium), prepress (highest, archival). CloudConvert engine.

## Output

Returns a compressed PDF binary or download URL with reduced file size. The compression level depends on the chosen quality: ebook (lowest size, web/screen quality), printer (medium balance of size and quality), or prepress (highest quality, archival-grade, least compression).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "pdf_url"
     ],
     "properties": {
      "pdf_url": {
       "type": "string",
       "format": "uri",
       "description": "URL of the PDF to compress. Must be http(s)."
      },
      "profile": {
       "enum": [
        "web",
        "print",
        "archive",
        "mrc",
        "max"
       ],
       "type": "string",
       "description": "Optional. Compression profile: 'web' (default), 'print', 'archive', 'mrc', or 'max'."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "pdf_url": {
       "type": "string"
      },
      "saved_percent": {
       "type": "number"
      },
      "original_size_bytes": {
       "type": "integer"
      },
      "compressed_size_bytes": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-deployer-x402-deployer-workers-dev-500f6ca3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
