# Resolve402 Markdown to PDF

> Resolve402 Markdown to PDF is a paid API for AI agents from resolve402.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Converts Markdown text into a formatted PDF document with headings, lists, code blocks, tables, and page numbers

## Facts

- Endpoint: POST https://resolve402.dev/api/markdown-to-pdf?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/resolve402-markdown-to-pdf-62c8037b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N6_76Jza7psFtFTloKGYe

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 resolve402-markdown-to-pdf-62c8037b -d '<json body>'
```

Example prompt: Can you turn this markdown report into a PDF for me — use Letter paper size and set the title to 'Q2 Sales Summary'?

## When to prefer this

Choose this endpoint when an AI agent needs to deliver a polished, printable PDF document rendered from Markdown — such as reports, memos, or invoices — without needing a full document authoring service. Ideal for stateless, pay-per-call workflows where no data should be stored. Prefer over HTML-to-PDF converters when your source is already Markdown (CommonMark + GFM), and over word processor APIs when you need lightweight, fast conversion with no persistent storage.

## Known failure modes

- Markdown exceeds 200,000 character limit — request rejected
- Unsupported paper size value — validation error
- Malformed or missing markdown field — 400 bad request
- Complex markdown features not supported (e.g. embedded images, custom HTML) may render partially or be stripped
- Service unavailable or timeout for very large documents

## How this service works

Render Markdown into a clean PDF (headings, paragraphs, bold/italic/links, nested lists, code blocks, blockquotes, simple tables, page numbers). POST JSON { markdown, title?, paper?: "A4" | "Letter" } (max 200k characters), get application/pdf back. For hosted agents that must deliver a report, a memo or an invoice as a file. Nothing stored.

## Output

A binary PDF file (application/pdf) with the markdown rendered into clean, formatted pages including headings, bold/italic text, hyperlinks, nested lists, code blocks, blockquotes, simple tables, and page numbers. No data is stored server-side.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "paper": {
   "enum": [
    "A4",
    "Letter"
   ],
   "type": "string",
   "description": "Page size, default A4"
  },
  "title": {
   "type": "string",
   "description": "Optional document title (printed on top, set in PDF metadata; defaults to the first H1)"
  },
  "markdown": {
   "type": "string",
   "description": "Markdown source (CommonMark + GFM tables), max 200,000 characters"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/resolve402-markdown-to-pdf-62c8037b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from resolve402.dev](https://www.zero.xyz/host/resolve402.dev/llms.txt)
