# boring-api · convert: Markdown to PDF

> boring-api · convert: Markdown to PDF is a paid API for AI agents from convert.boring-api.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Converts Markdown text content to a PDF document using Chromium headless rendering, with optional landscape orientation

## Facts

- Endpoint: POST https://convert.boring-api.com/markdown-to-pdf
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/boring-api-convert-markdown-to-pdf-d110212d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aZz5ptwspSTe-iG14Wcrw

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 boring-api-convert-markdown-to-pdf-d110212d -d '<json body>'
```

Example prompt: Convert this markdown content to a PDF for me — render it in landscape orientation: '# My Report\n\nThis is a summary of Q3 results...'

## When to prefer this

Choose this endpoint when you need to programmatically convert Markdown content into a PDF document — especially useful for generating reports, documentation, or printable exports from Markdown source. Supports landscape mode for wide tables or presentations. Costs $0.005 USDC per call via x402 micropayment protocol.

## Known failure modes

- Invalid or missing 'content' field returns an error
- Malformed markdown may produce unexpected PDF layout
- Unsupported 'format' value may return a format error
- Large document content may time out or be rejected
- Binary decode failures if base64 handling is incorrect on client side

## How this service works

Document and data format conversions via Pandoc, Chromium-headless, and pure-JS libs. Text inputs/outputs are JSON-fielded; binary inputs/outputs use base64 in JSON for uniformity.

## Output

A JSON object containing the generated PDF as a base64-encoded binary string, ready to be decoded and saved as a .pdf file

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "format": {
   "enum": [
    "A4",
    "Letter",
    "Legal"
   ],
   "type": "string"
  },
  "content": {
   "type": "string"
  },
  "landscape": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/boring-api-convert-markdown-to-pdf-d110212d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from convert.boring-api.com](https://www.zero.xyz/host/convert.boring-api.com/llms.txt)
