# Strale HTML-to-PDF Converter

> Strale HTML-to-PDF Converter is a paid API for AI agents from api.strale.io, paid per call via x402, $0.108/call, status unknown (last checked 2026-09-15).

Converts an HTML page (by URL) to a PDF document with configurable margins, returning an audit record with cryptographic chain hashing.

## Facts

- Endpoint: GET https://api.strale.io/x402/v2/html-to-pdf
- Price: $0.108/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strale-html-to-pdf-converter-89e67e50
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Zdz2voVgYOXXLBIRFKB-_

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 strale-html-to-pdf-converter-89e67e50
```

Example prompt: Can you convert this webpage https://example.com/report into a PDF for me, using 20px margins on all sides?

## When to prefer this

Choose this endpoint when you need a verifiable, auditable PDF conversion with a cryptographic chain hash — especially in compliance, legal, or financial contexts where proof of the document state at a point in time matters. Prefer it over generic HTML-to-PDF tools when tamper-evidence and audit trails are required alongside the conversion.

## Known failure modes

- URL is unreachable or returns a non-200 status — PDF generation fails
- Invalid or malformed margin value causes a 400 Bad Request
- HTML page requires authentication that the renderer cannot provide
- Page load timeout if the target URL is slow to respond
- Payment failure via x402 micropayment protocol if USDC balance is insufficient

## How this service works

The trust layer for AI agents — 250+ independently tested data capabilities across 27 countries. Execute capabilities via REST, MCP, A2A, or x402 micropayments. Every call returns an audit record with cryptographic chain hashing.

## Output

A PDF file rendered from the target HTML page, along with an audit record containing a cryptographic chain hash that proves the conversion occurred at a specific time and was not tampered with.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "margins": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/strale-html-to-pdf-converter-89e67e50/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
