Convert HTML, URLs, or templates to PDF in seconds. Built for developers who need reliable, fast PDF generation without the complexity.
curl -X POST https://api.docforge.techyowls.io/v1/pdf/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"source": "html",
"html": "<h1>Hello World</h1>",
"options": { "format": "A4" }
}'
Powerful features for every PDF generation use case
Convert any HTML with CSS, images, and fonts to pixel-perfect PDFs.
Capture any webpage as a PDF with full JavaScript rendering support.
Create reusable templates with dynamic data. Perfect for invoices and reports.
Queue large jobs and get notified via webhooks when complete.
Upload directly to R2 or S3. Get instant URLs or base64 inline.
Headers, footers, margins, page numbers, orientation, and more.
Start free, scale as you grow. No hidden fees.
All plans include: Unlimited API keys, all PDF features, and fair overage pricing ($0.02/PDF).
Simple, predictable, well-documented
{
"source": "html",
"html": "<html><body><h1>Invoice</h1></body></html>",
"options": {
"format": "A4",
"margin": { "top": "20mm" }
}
}
{
"source": "template",
"template_id": "invoice-v1",
"data": {
"customer": "Acme Corp",
"total": 1250.00,
"items": [...]
}
}
{
"source": "url",
"url": "https://example.com/report",
"options": {
"wait_for": "networkidle",
"javascript": true
}
}
{
"source": "html",
"html": "...",
"async": true,
"webhook_url": "https://myapp.com/webhook"
}
// Response: { "job_id": "job_abc123" }
We'll notify you when you reach 80% of your quota. If you exceed it, additional PDFs are charged at $0.02 each. No service interruption.
Yes! Include Google Fonts via CSS or embed custom fonts as base64 in your HTML. Our Playwright engine supports all modern font formats.
Simple HTML PDFs generate in under 500ms. Complex pages with JavaScript may take 2-5 seconds. Use async mode for large batches.
By default, PDFs are returned inline as base64. You can also upload directly to your own S3 bucket or Cloudflare R2.
Absolutely. Cancel anytime from your dashboard. Your access continues until the end of your billing period.