# Tanod Web HTML-to-PDF Converter

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

Converts a public web page URL to a PDF file, returning it as base64 data or a 24-hour download link, with configurable paper size, orientation, margins, and render settings.

## Facts

- Endpoint: POST https://web.tanod.dev/v1/pdf/html-to-pdf?utm_source=zero.xyz
- Price: $0.0045/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanod-web-html-to-pdf-converter-3964aab4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JvZrd58Qs3ZTkTHLEALgb

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-web-html-to-pdf-converter-3964aab4 -d '<json body>'
```

Example prompt: Can you convert https://example.com/report to a PDF using A4 paper in portrait orientation, wait 1000ms for it to fully load, and give me a download link instead of the raw base64 data?

## When to prefer this

Choose this endpoint when you need to produce an actual PDF file (not just a Markdown or screenshot) from a public web URL, especially when paper size, orientation, and print margins matter — such as for archiving, printing, or document delivery. Prefer the 'url' output mode for large pages to avoid bloating the agent context with base64 data. Use the wait_ms parameter when the target page uses JavaScript-heavy rendering (e.g. charts, dashboards).

## Known failure modes

- Non-public or firewall-protected URLs will fail to load
- Invalid or malformed URLs return an error
- Pages requiring authentication will render login screens instead of content
- Very large or complex pages may time out or produce oversized responses
- Invalid paper size enum values return validation errors
- Scale values outside 0.1–2.0 range are rejected
- margin_mm values above 50 are rejected

## How this service works

Web tools: search, page to Markdown or screenshot, company profile and jobs, sitemaps, RDAP, IP.

## Output

Returns a JSON object containing the operation type, paper size, orientation, page count, output byte size, and either a base64-encoded PDF (data_base64 field) or a temporary download URL valid for 24 hours (with expiry timestamp, byte count, content type, and SHA256 hash for verification). An 'untrusted_content' flag is also returned indicating the rendered content came from an external source.

## 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-web-html-to-pdf-converter-3964aab4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from web.tanod.dev](https://www.zero.xyz/host/web.tanod.dev/llms.txt)
