# Tanod pdfpeek HTML-to-PDF

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

Converts a public web page URL to a PDF by printing it in a sandboxed browser with configurable paper size, orientation, margins, and scale.

## Facts

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

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-html-to-pdf-fd125a49 -d '<json body>'
```

Example prompt: Can you convert https://example.com/report to a PDF using A4 paper in portrait orientation, with 15mm margins on all sides, and wait 1000ms after the page loads for any animations to settle?

## When to prefer this

Choose this endpoint when you need to render a live public web page — including CSS, JavaScript-rendered content, and background graphics — to a high-fidelity PDF. It is superior to static HTML-to-PDF converters when dynamic content or visual fidelity matters, and better than screenshot tools when a paginated, printable document is the goal.

## Known failure modes

- URL is not publicly accessible or requires authentication — returns error
- URL times out or the page fails to load within the allowed settle time
- Invalid or non-HTTP(S) URL provided — schema validation error
- Paper size enum value not recognized
- Scale value outside 0.1–2.0 range — validation error
- Margin value exceeds 50mm — validation error
- wait_ms exceeds 5000ms — validation error
- Payment not attached or insufficient — 402 Payment Required

## 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 PDF binary (application/pdf) representing the rendered web page, printed according to the specified paper size, orientation, scale, margins, and background settings.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "maxLength": 2048,
   "minLength": 1,
   "description": "Public http(s) URL of the page to print."
  },
  "paper": {
   "enum": [
    "a4",
    "letter",
    "legal",
    "a3",
    "a5",
    "tabloid"
   ],
   "type": "string",
   "default": "a4",
   "description": "Paper size: a4 (default), letter, legal, a3, a5 or tabloid."
  },
  "scale": {
   "type": "number",
   "default": 1,
   "maximum": 2,
   "minimum": 0.1,
   "description": "Print scale of the page content (0.1-2.0, default 1.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."
  },
  "wait_ms": {
   "type": "integer",
   "default": 500,
   "maximum": 5000,
   "minimum": 0,
   "description": "Extra settle time after the load event."
  },
  "landscape": {
   "type": "boolean",
   "default": false,
   "description": "Landscape orientation (default false: portrait)."
  },
  "margin_mm": {
   "type": "object",
   "properties": {
    "top": {
     "type": "number",
     "default": 10,
     "maximum": 50,
     "minimum": 0
    },
    "left": {
     "type": "number",
     "default": 10,
     "maximum": 50,
     "minimum": 0
    },
    "right": {
     "type": "number",
     "default": 10,
     "maximum": 50,
     "minimum": 0
    },
    "bottom": {
     "type": "number",
     "default": 10,
     "maximum": 50,
     "minimum": 0
    }
   },
   "description": "Margins in mm (0-50 each, default 10).",
   "additionalProperties": false
  },
  "print_background": {
   "type": "boolean",
   "default": true,
   "description": "Print background colours and images (default true)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com",
  "file": {
   "name": "page.pdf",
   "bytes": 27621,
   "pages": 1,
   "data_base64": "JVBERi0xLjQKJdPr... (trimmed: 36,828 base64 characters in the reply)",
   "content_type": "application/pdf"
  },
  "pages": 1,
  "paper": "a4",
  "landscape": false,
  "operation": "html-to-pdf",
  "output_bytes": 27621,
  "untrusted_content": true
 }
}
```

## More

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