# x402.aurelianflo.com HTML-to-PDF Renderer

> x402.aurelianflo.com HTML-to-PDF Renderer is a paid API for AI agents from x402.aurelianflo.com, paid per call via x402, $0.18/call, status unknown (last checked 2026-09-14).

Converts HTML (with CSS and tables) into a high-fidelity PDF using a premium rendering engine, supporting custom headers, footers, page format, and background printing.

## Facts

- Endpoint: POST https://x402.aurelianflo.com/api/tools/pdf/render-html
- Price: $0.18/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-aurelianflo-com-html-to-pdf-renderer-3a38313f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_js8APviqOMNsyVidYEj-q

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 x402-aurelianflo-com-html-to-pdf-renderer-3a38313f -d '<json body>'
```

Example prompt: Take this HTML invoice template — including the embedded CSS table styles — and render it as a high-fidelity PDF in A4 format with portrait orientation, 20px margins all around, a header that says 'ACME Corp Invoice', a footer with the page number, and make sure the background colors are printed.

## When to prefer this

Choose this endpoint when you need maximum-fidelity PDF rendering of HTML with complex CSS, multi-column tables, custom headers/footers, or background colors — especially when layout accuracy matters more than speed or cost. Prefer over generic PDF converters when the HTML has advanced CSS or table styling that cheap renderers distort.

## Known failure modes

- Invalid or malformed HTML causing render failure
- Unsupported CSS features that the rendering engine cannot handle
- Missing required html field resulting in a 400 error
- Payment not fulfilled resulting in a 402 Payment Required response
- Overly complex HTML/CSS causing timeout
- Invalid page format string causing a 422 error

## How this service works

Convert HTML (including CSS and tables) into a premium, max-fidelity PDF using a high-precision rendering engine.

## Output

A rendered PDF file (binary/base64) produced from the provided HTML and CSS, with the specified page layout, header, footer, and background settings applied at maximum fidelity.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "css": {
   "type": "string"
  },
  "html": {
   "type": "string"
  },
  "page": {
   "type": "object",
   "properties": {
    "format": {
     "type": "string"
    },
    "margin": {
     "type": "object",
     "additionalProperties": true
    },
    "landscape": {
     "type": "boolean"
    }
   },
   "additionalProperties": true
  },
  "title": {
   "type": "string"
  },
  "footerHtml": {
   "type": "string"
  },
  "headerHtml": {
   "type": "string"
  },
  "printBackground": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-aurelianflo-com-html-to-pdf-renderer-3a38313f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.aurelianflo.com](https://www.zero.xyz/host/x402.aurelianflo.com/llms.txt)
