# Pocket Network PDF Tools

> Pocket Network PDF Tools is a paid API for AI agents from agent.pocket.network, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-16).

Performs PDF operations (inspect, split, merge, rotate, encrypt, decrypt, repair, optimize, and more) on documents fetched from public HTTPS URLs, returning results as temporary download links.

## Facts

- Endpoint: POST https://agent.pocket.network/v1/pdf-tools?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pocket-network-pdf-tools-60fc6e25
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vjfVIYAJq5-mlJ3gByVrq

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 pocket-network-pdf-tools-60fc6e25 -d '<json body>'
```

Example prompt: Can you merge these two PDFs into one — https://example.com/doc1.pdf and https://example.com/doc2.pdf — and give me a download link to the combined file?

## When to prefer this

Choose this endpoint when you need server-side PDF manipulation without uploading files or creating an account — it works directly from public HTTPS URLs and requires only a $0.005 USDC micropayment per call. Ideal for agents that need to programmatically split, merge, encrypt, inspect, or clean PDFs as part of a document workflow, especially when avoiding credential management overhead. Not suitable for PDFs behind authentication walls, files over 50 MB, or operations requiring persistent storage beyond one hour.

## Known failure modes

- Input URL not publicly accessible or not on port 443 — returns error indicating unreachable URL
- PDF exceeds 50 MB size limit — returns size limit error
- Wrong or missing password for encrypted PDF — returns decryption failure
- Invalid page numbers for extract_pages or rotate — returns parameter validation error
- Merge called with fewer than 2 or more than 10 URLs — returns input count error
- Malformed or corrupt PDF that cannot be repaired — returns processing error
- Temporary result URLs expire after one hour — subsequent access returns 404

## How this service works

Inspect, check, split, merge, extract pages, rotate, linearize, optimize, strip metadata, encrypt, decrypt or repair PDFs from public HTTPS URLs. POST /v1/pdf with operation, input_urls and options. Answers JSON: document facts, and for transforms temporary HTTPS URLs to the result PDFs, kept one hour. Up to 50 MB per input. Pay per request in USDC; no account, no API key.

## Output

Returns a JSON object with document facts (page count, metadata, structure details) for inspect/check operations. For transform operations (split, merge, rotate, encrypt, decrypt, optimize, repair, etc.), returns one or more temporary HTTPS URLs pointing to the resulting PDF files, valid for one hour. Up to 50 MB per input file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "options": {
   "type": "object",
   "description": "The operation's options. extract_pages needs {pages}; rotate needs {angle: 90, 180 or 270} and takes pages; split takes pages_per_file; encrypt needs owner_password and user_password (8 to 127 bytes, AES-256). Any operation takes password for an encrypted input; merge takes passwords, one per input."
  },
  "operation": {
   "enum": [
    "inspect",
    "check",
    "split",
    "merge",
    "extract_pages",
    "rotate",
    "linearize",
    "optimize_structure",
    "remove_metadata",
    "encrypt",
    "decrypt",
    "repair"
   ],
   "type": "string",
   "description": "What to do with the PDF."
  },
  "input_urls": {
   "type": "array",
   "items": {
    "type": "string",
    "pattern": "^https://",
    "maxLength": 2048
   },
   "examples": [
    [
     "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
    ]
   ],
   "maxItems": 10,
   "minItems": 1,
   "description": "Public HTTPS PDFs on port 443. merge takes 2 to 10; every other operation takes exactly one."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pocket-network-pdf-tools-60fc6e25/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.pocket.network](https://www.zero.xyz/host/agent.pocket.network/llms.txt)
