Generate, merge, split, watermark, extract. Every PDF operation is one API call. Replace five libraries with one endpoint.
import PDFBase from 'pdfbase'
const client = new PDFBase('pk_live_...')
const pdf = await client.pdfs.create({
html: '<h1>Invoice #1042</h1>',
compress: 'medium',
watermark: { text: 'PAID' },
output: 'url'
})
// pdf.id → 'pdf_x7Kf9m'
// pdf.url → signed URL, 24h expiry
// pdf.pages → 3
// pdf.bytes → 48201
2.4M+
PDFs generated
184ms
Avg response time
99.97%
Uptime last 90 days
850+
Developer teams
“We replaced Puppeteer, pdf-lib, and a custom queue system with one PDFBase call. Saved us two sprints of infrastructure work.”
Marcus Reynolds
Lead Engineer, Docflow
“The debug mode alone is worth it. Being able to see exactly why a PDF render failed — screenshot, console logs, failed assets — is a game changer.”
Sarah Kim
CTO, InvoiceStack
“We hooked PDFBase into our AI agent via MCP and it just worked. Our agent generates client reports autonomously now. Zero prompt engineering needed.”
James Thornton
Founder, AgentOps
$ npm install puppeteer
$ npm install pdf-lib
$ npm install tesseract.js
$ npm install @gotenberg/client
$ npm install handlebars
5
dependencies
400MB
Chromium binary
20h+
to production
5
APIs to learn
$ npm install pdfbase
That's it. That's the stack.
$0.01
per PDF. Failed requests are free.
Send HTML or a URL, get a pixel-perfect PDF back. Full Chromium rendering — CSS Grid, Flexbox, web fonts, JavaScript. Everything works exactly like your browser.
Save HTML + Handlebars once. Render with JSON data. Invoices, contracts, reports — at any scale.
Combine multiple PDFs into one. Split by page ranges. Reorder pages.
Stamp text or images on existing PDFs. Configurable opacity, position, rotation.
Pull text, tables, and structured data. OCR for scanned documents. Feed directly to your LLM.
Send DOCX, XLSX, PPTX. Get pixel-perfect PDFs. No LibreOffice to deploy.
Queue thousands of PDFs in one call. Webhook when done. Idempotency keys prevent duplicates.
Generate PNG previews of any PDF page. Perfect for file browsers, search results, dashboards.
Debug mode
Screenshot + console log + failed resources on every generation
Chromium pinned
Exact version documented. No rendering drift between deployments
Request replay
Replay any request from the dashboard. Debug production without code
Agents don't read READMEs or configure Docker. They call APIs. PDFBase is built for that world — MCP server included, every response is structured, every error is typed.
Add the MCP server
Agent discovers tools automatically
Your AI reads the OpenAPI spec. Every endpoint becomes a callable tool — zero config.
Agent calls PDFBase like any tool
"tool": "pdfbase_create"
"html": "<h1>Invoice</h1>..."
→ { "url": "https://cdn.pdfbase.dev/pdf_x7K..." }
Prepaid credit packs. No subscriptions, no overage fees. Buy once, use whenever. Credits valid 12 months.
Growth
5,500 credits save 10%
Scale
25,000 credits save 25%
Start with 100 free credits. No credit card required.
100 free credits. No credit card. No Docker. No Chromium flags.