# Tanod pdfpeek PDF Crop

> Tanod pdfpeek PDF Crop is a paid API for AI agents from tanod.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-10).

Crops margins from specified pages of a PDF document, returning the trimmed PDF as base64-encoded data

## Facts

- Endpoint: POST https://tanod.dev/v1/pdf/crop?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanod-pdfpeek-pdf-crop-cf997f9a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NW5mGZr5J5TstVktyrc1j

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 tanod-pdfpeek-pdf-crop-cf997f9a -d '<json body>'
```

Example prompt: Crop this PDF by cutting 50pt from the top, 30pt from the bottom, and 20pt from each side — here's the URL: https://example.com/report.pdf — apply it to pages 1-5 only and give me the result as a base64 PDF.

## When to prefer this

Choose this endpoint when you need to programmatically trim page margins or remove headers/footers from a PDF, especially in a pay-per-call agent workflow without any signup. It accepts both public URLs and base64-encoded PDFs, supports per-unit cropping in points or percentages, and targets specific page ranges — making it ideal for precise document cleanup tasks where you want a clean base64 PDF back immediately.

## Known failure modes

- URL points to a private, internal, or IP-literal host — request refused
- PDF exceeds 20 MB via URL or 10 MB via base64 — rejected with size error
- Invalid page range pattern causes a parsing error
- Neither url nor pdf_base64 provided — missing required input
- Margin values exceed the maximum of 14400 — validation error
- PDF is password-protected or corrupted — processing failure

## How this service works

One MCP server and HTTP API with 193 pay-per-call tools for AI agents (security checks, chain data, finance, aviation, documents), plus free uptime and MikroTik monitoring and 130+ free browser tools. No signup; free daily tier. Operated by an AI.

## Output

Returns a JSON object containing the cropped PDF encoded as base64, along with metadata: output file name ('cropped.pdf'), byte sizes for input and output, number of pages cropped, per-page dimensions in points, the unit used, and flags indicating whether any active/unsafe content was removed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "top": {
   "type": "number",
   "default": 0,
   "maximum": 14400,
   "minimum": 0,
   "description": "Margin to cut from the top edge of the page as displayed, in `unit` (default 0)."
  },
  "url": {
   "anyOf": [
    {
     "type": "string",
     "maxLength": 2048,
     "minLength": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "Public http(s) URL of the PDF (at most 20 MB; private, internal and IP-literal hosts are refused); or use pdf_base64."
  },
  "left": {
   "type": "number",
   "default": 0,
   "maximum": 14400,
   "minimum": 0,
   "description": "Margin to cut from the left edge, in `unit` (default 0)."
  },
  "unit": {
   "enum": [
    "pt",
    "percent"
   ],
   "type": "string",
   "default": "pt",
   "description": "pt (1/72 inch, default) or percent of the displayed page's width (left, right) and height (top, bottom)."
  },
  "pages": {
   "anyOf": [
    {
     "type": "string",
     "pattern": "^[0-9a-zA-Z ,\\-]+$",
     "maxLength": 200,
     "minLength": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "Pages to crop (default all), e.g. 1-3,5."
  },
  "right": {
   "type": "number",
   "default": 0,
   "maximum": 14400,
   "minimum": 0,
   "description": "Margin to cut from the right edge, in `unit` (default 0)."
  },
  "bottom": {
   "type": "number",
   "default": 0,
   "maximum": 14400,
   "minimum": 0,
   "description": "Margin to cut from the bottom edge, in `unit` (default 0)."
  },
  "output": {
   "enum": [
    "base64",
    "url"
   ],
   "type": "string",
   "default": "base64",
   "description": "base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window."
  },
  "pdf_base64": {
   "anyOf": [
    {
     "type": "string",
     "maxLength": 13398872,
     "minLength": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "The PDF as base64 (at most 10 MB decoded per request); or use url."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "file": {
   "name": "cropped.pdf",
   "bytes": 13218,
   "pages": 1,
   "data_base64": "JVBERi0xLjQKJb/3... (trimmed: 17,624 base64 characters in the reply)",
   "content_type": "application/pdf"
  },
  "unit": "pt",
  "boxes": [
   {
    "page": 1,
    "width_pt": 523,
    "height_pt": 770
   }
  ],
  "operation": "crop",
  "input_bytes": 13264,
  "input_pages": 1,
  "output_bytes": 13218,
  "cropped_pages": 1,
  "boxes_truncated": false,
  "untrusted_content": true,
  "active_content_removed": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanod-pdfpeek-pdf-crop-cf997f9a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tanod.dev](https://www.zero.xyz/host/tanod.dev/llms.txt)
