Gotenberg API

Gotenberg is a self-hosted Docker-based API that converts HTML, Markdown, Office documents, and URLs to PDF using Chromium and LibreOffice — designed for server-side document generation in agent pipelines.

Evaluated Mar 06, 2026 (0d ago) v8.x
Homepage ↗ Repo ↗ Developer Tools gotenberg pdf html-to-pdf document-conversion self-hosted docker chromium
⚙ Agent Friendliness
65
/ 100
Can an agent use this?
🔒 Security
70
/ 100
Is it safe for agents?
⚡ Reliability
78
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
--
Documentation
88
Error Messages
78
Auth Simplicity
90
Rate Limits
95

🔒 Security

TLS Enforcement
80
Auth Strength
65
Scope Granularity
55
Dep. Hygiene
82
Secret Handling
70

No auth by default — must configure API token or put behind authenticated reverse proxy. Self-hosted means you control security. Chromium runs as non-root in Docker. MIT licensed, open source for audit.

⚡ Reliability

Uptime/SLA
82
Version Stability
80
Breaking Changes
72
Error Recovery
80
AF Security Reliability

Best When

You need a self-hosted, open-source PDF generation API that accepts HTML or Office files — no per-page pricing, no rate limits, runs in your infrastructure.

Avoid When

You need a managed cloud service with SLA guarantees or complex PDF manipulation — DocRaptor or PDFco for managed alternatives.

Use Cases

  • Generating PDF reports from HTML templates in agent document creation pipelines
  • Converting Office documents (DOCX, XLSX, PPTX) to PDF for standardized distribution
  • Rendering web URLs to PDF for archival, screenshots, or printing workflows
  • Building agent-generated invoices, proposals, and contracts as PDFs at scale
  • Merging multiple PDFs into a single document from agent-assembled content

Not For

  • Cloud-hosted PDF APIs (Gotenberg must be self-hosted via Docker)
  • Complex PDF editing or annotation (use PDFtron or iText for advanced manipulation)
  • Real-time PDF generation under 500ms SLA (Chromium rendering takes 1-5 seconds)

Interface

REST API
Yes
GraphQL
No
gRPC
No
MCP Server
No
SDK
No
Webhooks
No

Authentication

Methods: api_key basic_auth
OAuth: No Scopes: No

Optional API token or Basic Auth configurable at deployment time. No auth by default — must be enabled and configured. Suitable for internal/private networks without auth. Add reverse proxy for production security.

Pricing

Model: open_source
Free tier: Yes
Requires CC: No

Self-hosted is free with no limits. Costs are infrastructure (Docker CPU/memory). Chromium is resource-intensive — plan compute accordingly.

Agent Metadata

Pagination
none
Idempotent
Full
Retry Guidance
Not documented

Known Gotchas

  • Chromium rendering requires significant RAM (1GB+ per concurrent request) — plan infrastructure with headroom for agent bursts
  • External CSS/JS in HTML templates must be accessible from Gotenberg container — not from agent's localhost
  • JavaScript execution timeout defaults to 30 seconds — complex SPAs may time out before fully rendering
  • v7 to v8 API changed multipart form field names significantly — community examples may use outdated field names
  • PDF generation blocks until complete — agents should set generous HTTP client timeouts (30-120 seconds) to avoid premature timeout

Alternatives

Full Evaluation Report

Detailed scoring breakdown, competitive positioning, security analysis, and improvement recommendations for Gotenberg API.

$99

Scores are editorial opinions as of 2026-03-06.

5208
Packages Evaluated
26151
Need Evaluation
173
Need Re-evaluation
Community Powered