DocuForge
Now in public beta

HTML in. Pixel-perfect PDFs out.

Generate invoices, reports, and certificates from HTML, React, or templates. One API call, milliseconds.

100 PDFs/month free. No credit card required.

typescript
import DocuForge from 'docuforge';

const pdf = await docuforge.generate({
  html: '<h1>Invoice #1042</h1><p>Total: $69.98</p>',
  options: { format: 'A4' }
});

console.log(pdf.url);
// → https://cdn.getdocuforge.dev/gen_abc123.pdf
json
{
  "id": "gen_abc123",
  "status": "completed",
  "url": "https://cdn.getdocuforge.dev/gen_abc123.pdf",
  "pages": 1,
  "generation_time_ms": 287
}

Trusted by developers building at

VercelSupabaseStripeLinearResendNeon
10,000+
PDFs generated
99.9%
Uptime
<500ms
Avg response
5
SDK languages

Three steps to your first PDF

No headless browsers to manage. No complex setup. Just your content and one API call.

01

Write Your Template

Use HTML, React components, or Handlebars templates. Design exactly the PDF you want with the tools you already know.

02

Call the API

One POST request with your content. We handle browser rendering, fonts, page layout, and storage.

03

Get Your PDF

Receive a pixel-perfect PDF back in milliseconds. A CDN URL, ready to download, email, or embed.

Everything you need

From simple HTML-to-PDF to batch processing and form filling. One API for every PDF workflow.

HTML & React Rendering

Send raw HTML or React JSX. Playwright renders it with pixel-perfect fidelity, just like a browser.

Template Engine

Handlebars templates with variables, loops, and conditionals. Store and version them via API.

Batch Generation

Generate hundreds of PDFs asynchronously. Queue-based processing with webhook callbacks.

PDF Tools

Merge, split, protect, sign, and fill forms. A complete PDF toolkit in one API.

QR Codes & Barcodes

Drop {{qr:data}} or {{barcode:data}} placeholders in your HTML. We render inline SVGs automatically.

Headers & Footers

Dynamic page numbers, dates, and custom content in headers and footers across every page.

Multi-Cloud Storage

Store generated PDFs in Cloudflare R2, AWS S3, or Google Cloud Storage. Your choice.

Self-Hostable

Run the entire stack on your own infrastructure with Docker Compose. Full control, zero vendor lock-in.

Works with your stack

Send HTML, React components, or use stored templates. Pick the approach that fits your workflow.

typescript
import DocuForge from 'docuforge';

const client = new DocuForge('df_live_...');

const pdf = await client.generate({
  html: `
    <h1>Invoice #1042</h1>
    <p>Billed to: Acme Corp</p>
    <table>
      <tr><td>Widget Pro</td><td>$49.99</td></tr>
      <tr><td>Support Plan</td><td>$19.99</td></tr>
    </table>
    <p><strong>Total: $69.98</strong></p>
  `,
  options: { format: 'A4', margin: '20mm' }
});

console.log(pdf.url); // https://cdn.getdocuforge.dev/gen_abc123.pdf

Your language. Your framework.

First-class SDKs for every major language, plus a REST API for everything else.

T
TypeScript
npm i docuforge
P
Python
pip install docuforge
G
Go
go get github.com/docuforge/docuforge-go
R
Ruby
gem install docuforge
R
React
npm i @docuforge/react-pdf
Next.jsExpressFastAPIDjangoRails

Why developers choose DocuForge

Stop maintaining headless browsers. Start shipping PDFs.

FeatureDocuForgePuppeteer DIYwkhtmltopdfPrince XML
Setup Time30 seconds30+ minutes15 minutes1 hour
MaintenanceZeroHigh (browser updates)MediumLow
React SupportYesManualNoNo
Template EngineBuilt-inDIYNoNo
Batch ProcessingBuilt-in queueDIYNoNo
PDF Tools (merge, split)YesNoNoNo
Multi-language SDKs5 languagesJS onlyCLICLI + Java
Self-hostableYesYesYesYes

DocuForge replaced 200 lines of Puppeteer boilerplate with a single API call. Our invoice generation went from a maintenance nightmare to something we never think about.

S
Sarah Chen
CTO, InvoiceStack

We switched from wkhtmltopdf and the difference in output quality is night and day. The template versioning means we can iterate on designs without breaking production.

M
Marcus Rodriguez
Senior Engineer, ReportLab

The React-to-PDF feature is a game changer. We reuse our existing UI components and get pixel-perfect PDFs without maintaining separate templates.

P
Priya Sharma
Full-Stack Developer, CourseHub

From the blog

View all posts

Start generating PDFs for free

No credit card required. Upgrade when you need more volume.

Free Tier
$0
per month, forever
  • 100 PDFs per month
  • All PDF generation features
  • All SDK languages
  • Template engine access
  • PDF tools (merge, split, protect)
  • Community support
Get Your API Key

Need more? Plans start at $29/month for 10,000 PDFs.

Ready to build?

Get your API key and generate your first PDF in under 30 seconds.