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.
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{
"id": "gen_abc123",
"status": "completed",
"url": "https://cdn.getdocuforge.dev/gen_abc123.pdf",
"pages": 1,
"generation_time_ms": 287
}Trusted by developers building at
Three steps to your first PDF
No headless browsers to manage. No complex setup. Just your content and one API call.
Write Your Template
Use HTML, React components, or Handlebars templates. Design exactly the PDF you want with the tools you already know.
Call the API
One POST request with your content. We handle browser rendering, fonts, page layout, and storage.
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.
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.pdfYour language. Your framework.
First-class SDKs for every major language, plus a REST API for everything else.
npm i docuforgepip install docuforgego get github.com/docuforge/docuforge-gogem install docuforgenpm i @docuforge/react-pdfWhy developers choose DocuForge
Stop maintaining headless browsers. Start shipping PDFs.
| Feature | DocuForge | Puppeteer DIY | wkhtmltopdf | Prince XML |
|---|---|---|---|---|
| Setup Time | 30 seconds | 30+ minutes | 15 minutes | 1 hour |
| Maintenance | Zero | High (browser updates) | Medium | Low |
| React Support | Yes | Manual | No | No |
| Template Engine | Built-in | DIY | No | No |
| Batch Processing | Built-in queue | DIY | No | No |
| PDF Tools (merge, split) | Yes | No | No | No |
| Multi-language SDKs | 5 languages | JS only | CLI | CLI + Java |
| Self-hostable | Yes | Yes | Yes | Yes |
“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.”
“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.”
“The React-to-PDF feature is a game changer. We reuse our existing UI components and get pixel-perfect PDFs without maintaining separate templates.”
From the blog
View all postsStart generating PDFs for free
No credit card required. Upgrade when you need more volume.
- 100 PDFs per month
- All PDF generation features
- All SDK languages
- Template engine access
- PDF tools (merge, split, protect)
- Community support
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.