pdf.xhub

Documentation

The full API reference is in active development alongside our public-API launch. The OpenAPI 3.1 spec will live at api.pdf.xhub.io/openapi.json — generate clients for any language, with full type-safety from day one.

Our goal: zero documentation drift. The spec ships with every release, the SDKs are generated from the spec, and the recipes are versioned with the code they reference.

Sneak peek: your first render

The endpoint shape is stable. Here’s what calling it looks like today — the production version will accept the same JSON envelope.

One endpoint, five input modes (html, url, markdown, form-fill, invoice). The `input` field discriminates the request shape.

# 1. Sign up at pdf.xhub.io and grab an API key
export PDFXHUB_KEY="pk_live_..."

# 2. Render your first PDF — HTML in, PDF out
curl -X POST https://api.pdf.xhub.io/v1/render \
  -H "Authorization: Bearer $PDFXHUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "html",
    "html": "<h1>Hello, PDF</h1>",
    "options": { "format": "A4", "margin": "20mm" }
  }' --output hello.pdf

# That's it. Same shape works for url, markdown, form-fill, and invoice.

What ships at v1

Coming soon
Quickstart Guide
Generate your first PDF in five minutes — from sign-up to /v1/render call, with copy-paste examples in cURL, TypeScript, and Python.
Coming soon
API Reference
OpenAPI 3.1 spec with interactive try-it-out, rendered via Redoc. Every endpoint, every parameter, every response shape — with realistic example payloads.
Coming soon
OpenAPI Specification
Generate clients for any language with openapi-generator — TypeScript, Python, Go, Ruby, PHP, Java, .NET. The spec is the source of truth, not an afterthought.
Coming soon
Recipes & Tutorials
Real workflows: invoice batch on Vercel cron, account-statements on AWS Lambda, contract signing pipeline on Cloudflare Workers. Working code, not snippets.

Want a heads-up when docs are live?

Subscribe to the changelog or create a free account — we email launch news to all signed-up developers.