REST API JSON Coming Soon

PDF Generation API

Generate beautiful PDFs from HTML/CSS templates. Invoices, reports, certificates — any document, any language.

bash
curl -X POST https://pdf-api.zexta.dev/generate \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "html": "<h1>Invoice #001</h1><p>Amount: $299.00</p>",
    "options": {"format": "A4", "margin": "20mm"}
  }'
json
{
  "status": "success",
  "pdf_url": "https://pdf-api.zexta.dev/files/abc123.pdf",
  "expires_at": "2026-06-16T10:30:00Z",
  "pages": 1,
  "size_bytes": 45230
}

Features

HTML/CSS → PDF rendering (Chromium-based)
Pre-built templates (invoices, reports, certificates)
Custom template engine
Multi-language support (including RTL)
Header/footer support
Batch generation endpoint

Endpoints

Method Endpoint Description
POST /generate Generate PDF from HTML/CSS
POST /generate/template Generate PDF from a saved template
GET /templates List available templates
POST /templates Create a custom template

Pricing

Free

$0 /month

100 PDFs/month

  • HTML → PDF generation
  • 3 pre-built templates
  • Community support
Coming Soon

Starter

$19 /month

5,000 PDFs/month

  • Everything in Free
  • All pre-built templates
  • Custom templates (5)
  • Email support
Coming Soon
Recommended

Pro

$49 /month

50,000 PDFs/month

  • Everything in Starter
  • Unlimited custom templates
  • Batch generation
  • Priority rendering
  • Priority support
Coming Soon

Business

$99 /month

200,000 PDFs/month

  • Everything in Pro
  • Dedicated rendering pool
  • 99.9% uptime SLA
  • Custom fonts
Coming Soon

Why Another PDF API?

CraftMyPDF charges premium prices. Most alternatives are slow or unreliable. We built a fast, developer-friendly PDF generation service with transparent pricing and no surprises.

Pre-Built Templates

Get started instantly with templates for common documents:

  • Invoices — Professional invoices with customizable branding
  • Reports — Data reports with charts and tables
  • Certificates — Course completion, awards, credentials
  • Receipts — Transaction receipts and order confirmations

All templates accept JSON data and produce beautiful, print-ready PDFs.

Frequently Asked Questions

What rendering engine do you use?
Chromium-based rendering (Playwright) for pixel-perfect HTML/CSS support. Your PDFs look exactly like your HTML.
Can I use custom fonts?
Yes on Business plans. Starter and Pro plans support all Google Fonts plus system fonts.
How long are generated PDFs stored?
Generated PDFs are available for 24 hours via the returned URL. For permanent storage, download immediately or use webhooks.
Do you support page headers and footers?
Yes. Full support for repeating headers, footers, and page numbers in all templates.

Ship to Production — Weekly

DevOps, deployment, and cloud tips for developers. No spam, unsubscribe anytime.