A single API endpoint that turns your HTML into a pixel-perfect PDF. No headless browser to manage, no dependencies to install, no infrastructure to maintain.
const response = await fetch('https://api.docforge.io/render', { method: 'POST', headers: { 'Content-Type': 'application/json', 'x-api-key': 'YOUR_API_KEY' }, body: JSON.stringify({ html: '<h1>Hello, PDF.</h1>' }) }) const { pdf, pages } = await response.json() // pdf = base64-encoded PDF ready to save or serve
Use your existing templates, CSS, and layout. Inline your styles or reference external fonts. DocForge renders exactly what you send.
Send your HTML to a single endpoint with your API key. Optionally configure paper size, margins, orientation, and headers/footers.
Receive a base64-encoded PDF in the response body, along with page count, file size, and render time. Decode and serve or store.
Powered by headless Chromium. What you see in a browser is what you get in the PDF. CSS backgrounds, web fonts, page breaks — all supported.
Letter, Legal, A4, Tabloid, or custom dimensions. Portrait or landscape. Full-bleed or custom margins. You control the output.
Warm renders complete in under a second. Cold starts under 4 seconds. No queues, no webhooks, no polling — synchronous request/response.
No Chromium to install, no Puppeteer to configure, no container to deploy. You send HTML over HTTPS. We handle the rest.
Reference Google Fonts, CDN-hosted images, and external stylesheets in your HTML. DocForge fetches and renders them during conversion.
One API key in the x-api-key header. No OAuth flows, no tokens to refresh, no SDKs required.