Get API Key
HTML to PDF API · Best Puppeteer Alternative · Free tier available

Generate invoice & report PDFs from HTML in one API call

No headless Chrome on your servers. Send HTML or a URL, get PDF bytes back. The fastest way to add PDF generation to any app — Node.js, Python, Django, Rails, PHP. Merge, split, watermark, compress, protect, rotate, and extract text — same API key.

curl -X POST "https://simple-pdf-api.p.rapidapi.com/v1/html-to-pdf" \
  -H "Content-Type: application/json" \
  -H "X-RapidAPI-Key: YOUR_KEY" \
  -H "X-RapidAPI-Host: simple-pdf-api.p.rapidapi.com" \
  -d '{"html":"<h1>Invoice #1042</h1><p>Total: $99</p>"}' \
  -o invoice.pdf

HTML → PDF

Full CSS via Chromium. A4, Letter, margins, headers/footers.

URL → PDF

Render any public page. SSRF protection built in.

Merge & split

Combine PDFs or extract page ranges in one request.

Watermark

Add CONFIDENTIAL or DRAFT overlays to every page.

Compress

Reduce file size by removing duplicate objects.

Protect

Password-encrypt PDFs with configurable permissions.

Rotate

Rotate all or selected pages by 90, 180, or 270°.

Use directly in Claude Desktop, Cursor & Windsurf

MCP server — no code needed. Generate PDFs from natural language inside your AI tools.

Quick setup (Claude Desktop)

{
  "mcpServers": {
    "pdf-api": {
      "command": "uvx",
      "args": ["pdf-api-mcp"],
      "env": { "PDF_API_KEY": "your_rapidapi_key" }
    }
  }
}

Add to ~/Library/Application Support/Claude/claude_desktop_config.json and restart Claude.

Pricing

Subscribe on RapidAPI. Cancel anytime.

$0 /mo

BASIC — ~50 req/day. Test & integrate.

$9 /mo

PRO — 5,000 req/mo. Side projects & MVPs.

$29 /mo

ULTRA — 25,000 req/mo. Production apps.

Why developers choose Simple PDF API over Puppeteer

No server-side Chrome

Skip the 300MB Chrome binary, memory leaks, and crash loops. We run it, you just POST.

Works in serverless

Lambda, Vercel, Cloudflare Workers — impossible with Puppeteer, trivial with an API call.

One line in any language

Node.js, Python, Django, Rails, PHP, Go — any HTTP client works. No SDK needed.

8 operations, one key

HTML→PDF, merge, split, watermark, compress, protect, rotate, extract text. Not just generation.

Use with ChatGPT — Custom GPT ready

OpenAI Actions schema available. Add PDF generation to your Custom GPT in minutes.

1. Open ChatGPT GPT Editor → Actions → Add action

2. Import schema from: https://pdf-api-production-9570.up.railway.app/openapi.json

3. Set auth header X-RapidAPI-Key with your key

Works great for

Invoices & receipts

Server-render HTML templates, attach PDF to emails.

Report exports

Dashboard → PDF download for your users.

Document automation

Merge uploads, watermark drafts, extract text.