Send HTML, get pixel-perfect PDF.

Chromium rendering engine with full CSS3/Flexbox/Grid support. Enterprise-grade security for production-ready PDF generation. * Chromium is available on Pro and above. Free uses the fast engine (wkhtmltopdf).

$ curl -X POST /api/pdf/generate-from-html \
  -H "Authorization: Bearer sk-xxxxx" \
  -d '{"html":"<h1>Hello</h1>"}'

{
  "success": true,
  "data": {
    "download_url": "https://...pdf",
    "file_size": 45321
  }
}

Everything you need for PDF generation

Building a PDF conversion API from scratch means handling authentication, rate limiting, storage, and cleanup. FUNBREW PDF provides it all in one package.

Dual-Engine PDF Generation Chromium-powered
Switch between Chromium (full CSS3) and wkhtmltopdf (fast) in a single API. Send HTML and get pixel-perfect PDFs with Flexbox/Grid support (Chromium on Pro and above; Free uses the fast engine).
Template Editor
CodeMirror editor with syntax highlighting, real-time preview, and one-click snippet insertion. Build invoices and certificates right in your browser.
Enterprise Security 2FA enabled
Two-factor authentication (TOTP), API key scopes and audit logs out of the box. IP restrictions are available on the Business plan.
Webhooks & Real-time Notifications 5 event types
Five events: pdf.generated, pdf.downloaded, pdf.expired, plus tus.upload.completed and tus.upload.aborted for resumable uploads. Auto-converts to Slack Block Kit for direct channel notifications.
Analytics Dashboard
Source breakdown, hourly heatmap, download trends. Visualize your PDF usage to optimize costs and workflows.
Scoped API Keys
Fine-grained permissions per key: generate, download, manage, template. SHA256 hashed and securely stored.
Client / Project Grouping NEW
Give each API key a "Client" and tags. Reseller agencies and SaaS operators can filter PDFs, API logs, and usage by client in one click. CSV exports include the "Client" (client_label) for easy invoice allocation.
Monthly generation limits
Automatic monthly quota management. Email alerts at 80%/90%/100% with upgrade prompts.
Expiry & download limits
Set expiration time and download count limits on generated PDFs. Expired files are auto-deleted.
Email & Slack notifications
Send PDFs as email attachments or notify via Slack on generation. One API call from generation to delivery.
S3 storage integration
Auto-upload to AWS S3 or S3-compatible storage like Wasabi. Manage PDFs in your own bucket (Business plan).
IP restrictions
Set IP allowlists per company. CIDR notation supported for office network-level control (Business plan).
Management dashboard
API keys, templates, snippets, webhooks, storage, and member management — all from the web dashboard.

Works in a few lines

POST your HTML and get a download URL back as JSON.

Request
curl -X POST https://pdf.funbrew.cloud/api/pdf/generate-from-html \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"html": "<h1>Hello</h1>", "options": {"page-size": "A4"}}'
Response
{
  "success": true,
  "data": {
    "filename": "a1b2c3d4-e5f6-...-7890.pdf",
    "download_url": "https://api.example.com/api/pdf/download/a1b2c3d4-...",
    "file_size": 45321,
    "expires_at": "2026-03-20T12:00:00.000000Z",
    "max_downloads": 0,
    "remaining_downloads": -1
  }
}

Used in scenarios like these

Instead of building PDF generation yourself, let the API handle it. Just add a few lines to your existing system.

Automated invoice & estimate generation

Feed order data from your accounting system into a template and send it to the API. Generation, storage, and expiry management are all handled API-side.

// Fill the invoice template with data and turn it into a PDF
const html = renderInvoice(order);

const res = await fetch("/api/pdf/generate-from-html", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    html,
    options: { "page-size": "A4" },
    expiration_hours: 168, // valid for 7 days
    email: {              // email the PDF as an attachment
      to: order.email,
      subject: "Your invoice",
    },
  }),
});

Scheduled internal report generation

Pass a dashboard URL to the API to capture it as a PDF. Combine with cron to deliver daily reports to Slack automatically.

# Every morning at 9: turn the dashboard into a PDF and post it to Slack
res = requests.post(
    f"{API_BASE}/api/pdf/generate-from-url",
    headers={"Authorization": f"Bearer {API_KEY}"},
    json={
        "url": "https://bi.internal/dashboard/daily",
        "options": {"page-size": "A3"},
    },
)
pdf_url = res.json()["data"]["download_url"]
slack.post(channel, f"Daily report: {pdf_url}")

Dynamic user-facing document generation

Contracts, certificates, insurance policies — generate unique PDFs per user. Download limits prevent link sharing, and expired files are auto-deleted.

// Generate and return a certificate PDF for each user
$html = view('certificate', [
    'user' => $user,
    'course' => $course,
    'issued_at' => now(),
])->render();

$res = Http::withToken($apiKey)
    ->post("{$apiBase}/api/pdf/generate-from-html", [
        'html' => $html,
        'max_downloads' => 3,   // up to 3 downloads
        'expiration_hours' => 72,
    ]);

return $res->json('data.download_url');

Web page archiving

Save point-in-time snapshots of web pages as PDFs. Just send the URL — no scraping or headless browser management needed.

// Turn a list of URLs into PDFs
const urls = [
  "https://example.com/product/123",
  "https://example.com/product/456",
];

const results = await Promise.all(
  urls.map((url) =>
    fetch("/api/pdf/generate-from-url", {
      method: "POST",
      headers: {
        "Authorization": `Bearer ${API_KEY}`,
        "Content-Type": "application/json",
      },
      body: JSON.stringify({ url }),
    }).then((r) => r.json())
  )
);

results.forEach((r) => console.log(r.data.download_url));

Getting started

  1. Sign up for freeEnter your name, email address, and other details to create a free account.
  2. Get your API key on the welcome screenAfter you sign up, your API key appears on the welcome screen. It is shown only there, so copy it and store it securely.
  3. Call the APIUse the API key as a Bearer Token and POST HTML or a URL. You'll get a PDF download URL back.

Pricing

3 plans based on monthly generation volume. All prices exclude tax.

FreeProBusiness
Monthly$0$79$399
PDFs / month301,00010,000
API requests / min10120300
Storage10MB1GB5GB
Watermark"FUNBREW PDF"NoneNone
Chromium Engine (CSS3)—✓✓
TemplatesUnlimitedUnlimitedUnlimited
Webhook / Slack✓✓✓
Batch / Merge✓✓✓
S3 Storage——✓
IP restriction——✓
MembersNo limit on numberNo limit on numberNo limit on number
SupportEmailPriority emailPriority email
Start freeGet startedGet started

For high volume or a dedicated environment (dedicated infrastructure, SLA, unlimited), please contact us. Contact us

When you reach the monthly limit, generation stops until next month (no overage charges).

Free plan requires no credit card. You can change plans anytime from the dashboard.

Billing terms

How do I pay?
You pay by credit card on Stripe's checkout page. Plans are billed monthly in advance.
What happens when I change plans?
Changes between paid plans are prorated (charged by the day).
How do I cancel?
Switching back to the Free plan keeps your current plan until the end of the current billing period, then moves you to Free. No refund is given for the rest of the period. Until then, you can undo it from the Billing page.
Where are invoices and receipts?
Invoices and receipts are available from the customer portal (Stripe), opened from Billing & plans in the dashboard.

We help you integrate the API

FUNBREW Inc., the company behind FUNBREW PDF, is a systems development company. From API integration to workflow automation, we provide end-to-end support.

View use cases
API integration into existing systems
We integrate the PDF generation API into your core systems, CRM, e-commerce, and more. Language and framework agnostic.
Template design & development
We design and build HTML/CSS templates for invoices, contracts, reports, and other business documents.
Workflow automation
We automate the entire flow — PDF generation to email to Slack to S3 — tailored to your business.
Operations & maintenance support
Ongoing monitoring, troubleshooting, and feature requests after deployment.

Try it for free

Free plan includes 30 PDFs/month. Integration support available.