# Tanod pdfpeek PDF Resize

> Tanod pdfpeek PDF Resize 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).

Resizes pages of a PDF to a standard or custom page size using fit, fill, or stretch scaling modes, returning the resized PDF as base64

## Facts

- Endpoint: POST https://tanod.dev/v1/pdf/resize?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-resize-f86a811b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m0j-ISiN8BLnGBYrgX6hB

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-resize-f86a811b -d '<json body>'
```

Example prompt: Can you resize all pages of this PDF (https://example.com/report.pdf) to A4 size using fit mode so the content is centered with the aspect ratio preserved?

## When to prefer this

Use this endpoint when you need to normalize PDF page dimensions to a standard paper size (A4, letter, legal) or a custom size, with control over scaling behavior (fit/fill/stretch) and orientation. It also sanitizes active content (JavaScript, XFA) from the PDF, making it a good choice when security matters. Prefer this over generic PDF converters when you need precise per-page scale metadata returned alongside the resized file.

## Known failure modes

- PDF URL is inaccessible, private, or IP-literal — request refused
- PDF exceeds 20 MB (URL) or 10 MB decoded (base64) — rejected
- Neither url nor pdf_base64 provided — validation error
- Invalid page range format — rejected
- Custom size missing width or height — validation error
- Width or height outside 36–14,400 pt bounds — rejected
- Malformed base64 string — decoding error

## 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

A JSON object containing the resized PDF as a base64-encoded string, along with metadata: output filename, byte size, page count, resize mode used, target size, per-page scale factors and dimensions, input/output byte counts, number of resized pages, and flags indicating whether active content (XFA, JavaScript) was stripped from the PDF for security.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "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."
  },
  "mode": {
   "enum": [
    "fit",
    "fill",
    "stretch"
   ],
   "type": "string",
   "default": "fit",
   "description": "fit (default): the whole page inside the new one, centred, aspect ratio kept; fill: the new page covered, aspect ratio kept, the overflow cut off; stretch: the page forced to the new size."
  },
  "size": {
   "enum": [
    "a4",
    "letter",
    "legal",
    "custom"
   ],
   "type": "string",
   "description": "a4 (595.28 x 841.89 pt), letter (612 x 792), legal (612 x 1008) or custom (then width and height)."
  },
  "unit": {
   "enum": [
    "pt",
    "mm",
    "in"
   ],
   "type": "string",
   "default": "pt",
   "description": "Unit of width and height: pt (default), mm or in."
  },
  "pages": {
   "anyOf": [
    {
     "type": "string",
     "pattern": "^[0-9a-zA-Z ,\\-]+$",
     "maxLength": 200,
     "minLength": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "Pages to resize (default all), e.g. 1-3,5."
  },
  "width": {
   "anyOf": [
    {
     "type": "number",
     "maximum": 1000000,
     "exclusiveMinimum": 0
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "size=custom: one side of the page, in `unit`."
  },
  "height": {
   "anyOf": [
    {
     "type": "number",
     "maximum": 1000000,
     "exclusiveMinimum": 0
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "size=custom: the other side, in `unit` (each side 36 to 14,400 pt)."
  },
  "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."
  },
  "or
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "file": {
   "name": "resized.pdf",
   "bytes": 90065,
   "pages": 6,
   "data_base64": "JVBERi0xLjcKJb/3... (trimmed: 120,088 base64 characters in the reply)",
   "content_type": "application/pdf"
  },
  "mode": "fit",
  "size": "a4",
  "sizes": [
   {
    "page": 1,
    "scale": 0.9727,
    "width_pt": 595.28,
    "height_pt": 841.89
   },
   {
    "page": 2,
    "scale": 0.9727,
    "width_pt": 595.28,
    "height_pt": 841.89
   }
  ],
  "operation": "resize",
  "input_bytes": 140815,
  "input_pages": 6,
  "output_bytes": 90065,
  "resized_pages": 2,
  "sizes_truncated": false,
  "untrusted_content": true,
  "active_content_removed": {
   "xfa": 1,
   "javascript": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanod-pdfpeek-pdf-resize-f86a811b/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)
