# HTML/URL to PDF Renderer

> HTML/URL to PDF Renderer is a paid API for AI agents from agents.torbrooknews.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-13).

Renders a URL or raw HTML string to a PDF file using a headless browser and returns the PDF bytes

## Facts

- Endpoint: GET https://agents.torbrooknews.com/v1/pdf?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/html-url-to-pdf-renderer-72889b55
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gu0lfCInUcEF6jGaEsa3D

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 html-url-to-pdf-renderer-72889b55
```

Example prompt: Can you render this invoice HTML into a PDF file for me? Here's the raw HTML: <html><body><h1>Invoice #1042</h1><p>Amount due: $500</p></body></html>

## When to prefer this

Choose this endpoint when you need to programmatically generate a PDF from a URL or raw HTML — ideal for invoices, receipts, reports, or archiving web content. Prefer it over screenshot services when a selectable, printable document is required rather than a raster image.

## Known failure modes

- Invalid or unreachable URL returns an error or empty response
- Malformed HTML may produce a blank or partial PDF
- Neither url nor html provided results in a missing-parameter error
- Very large pages or complex CSS may cause rendering timeouts
- Pages requiring authentication or behind paywalls will not render correctly

## How this service works

Render a URL or raw HTML to a PDF file with a headless browser. Returns the PDF bytes. Use for invoices, reports, receipts, archiving pages. Also callable as GET with the same fields as query parameters.

## Output

Returns raw PDF bytes representing the rendered document. The PDF faithfully captures the full visual layout of the provided URL or HTML as rendered by a headless browser, suitable for saving, emailing, or displaying as a file attachment.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string"
      },
      "html": {
       "type": "string",
       "description": "Raw HTML instead of url"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/html-url-to-pdf-renderer-72889b55/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.torbrooknews.com](https://www.zero.xyz/host/agents.torbrooknews.com/llms.txt)
