# Agent Tools UK – HTML/URL to PDF

> Agent Tools UK – HTML/URL to PDF is a paid API for AI agents from agent-tools-production-e6aa.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-13).

Converts HTML markup or a public web page URL into a print-quality PDF rendered by Chrome, with full CSS and background support

## Facts

- Endpoint: POST https://agent-tools-production-e6aa.up.railway.app/v1/make-pdf?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-tools-uk-html-url-to-pdf-635c80bd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vVtQKNctrFj-SKBWC20ob

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 agent-tools-uk-html-url-to-pdf-635c80bd -d '<json body>'
```

Example prompt: Take this HTML invoice I've written and convert it to a print-quality A4 PDF with all the CSS styles and background colours intact: <html>...</html>

## When to prefer this

Choose this endpoint when you need a polished, print-ready PDF from HTML you control or from a publicly accessible URL, with full Chrome rendering (CSS backgrounds, web fonts, custom layouts). Prefer it over generic document converters when CSS fidelity matters, or over screenshot tools when you need a selectable-text, properly paginated document rather than an image. Best for invoices, reports, letters, and certificates generated from HTML templates.

## Known failure modes

- 400 Bad Request – neither html nor url was provided (missing required input)
- 400 Bad Request – the supplied URL is private, localhost, or otherwise unreachable from the renderer
- 413 Payload Too Large – the HTML string exceeds 2 MB
- Rendering errors if HTML references local resources (file://) or intranet assets not accessible from the renderer
- Timeout if the target URL is extremely slow to load

## How this service works

Turn HTML you write (an invoice, report, letter or certificate) or a public web page into a print-quality PDF, rendered by Chrome with backgrounds and CSS. Use when you need to hand a person a polished, printable document. Send {html} or {url}; optional format (A4, Letter, A3, A5, Legal) and landscape. Returns the PDF. Errors: 400 missing input or private URL, 413 HTML over 2 MB.

## Output

Returns the rendered PDF file as binary content (application/pdf). The PDF is print-quality, produced by a real Chrome browser, with CSS styling, web fonts, and background colours/images preserved. Page format defaults to A4 unless overridden; landscape is optional.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "Public page to print. Provide html OR url."
  },
  "html": {
   "type": "string",
   "description": "HTML to render. Provide html OR url."
  },
  "format": {
   "enum": [
    "A4",
    "Letter",
    "A3",
    "A5",
    "Legal"
   ],
   "type": "string"
  },
  "landscape": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-tools-uk-html-url-to-pdf-635c80bd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-tools-production-e6aa.up.railway.app](https://www.zero.xyz/host/agent-tools-production-e6aa.up.railway.app/llms.txt)
