A simple API that turns your HTML into a pixel-perfect PDF. No headless browser to manage, no dependencies to install, no infrastructure to maintain. And the reverse: send any document and get its text back.
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.
Send a PDF, Word (.doc or .docx), RTF, or text file and get back all of its text, ready for your app or your LLM. Same API key, same synchronous request/response.
Image-only and scanned PDFs are read with OCR automatically: DocForge detects which pages need it. Turn it off per request when you only want files with a text layer.
Drop in transcripts exported from Microsoft Teams, Zoom, or Google Meet (.vtt, .srt, .docx, .txt) and get the full conversation back as text.