Gotenberg exposes an HTTP API, packaged in Docker, that turns URLs, HTML, Markdown, and office files into PDFs and runs further PDF operations in one request.
Overview
Gotenberg is a containerized API focused on producing and refining PDFs. Clients send multipart form requests and receive PDF responses without installing Chromium, LibreOffice, or font stacks locally. Headless Chromium renders URLs, HTML, and Markdown to PDF, while LibreOffice converts Word, Excel, PowerPoint, and many other office formats.
Beyond conversion, routes can chain stages on a PDF or on output fresh from a conversion: merge, split, rotate, stamp, sign, encrypt, redact, optimize, and similar steps listed in a stages field executed in order. The API can validate PDFs against profiles such as PDF/A, PDF/UA, and Factur-X, remediate non-compliant files, and build hybrid e-invoices from office documents plus embedded XML.
Additional capabilities include screenshots and page images, metadata and bookmark handling, attachments, timestamps, and piping results to webhooks or cloud storage when configured with headers for upload and event notification. Separate images bundle only Chromium, only LibreOffice, or variants tuned for AWS Lambda and Cloud Run.
Operation is oriented around running the published container image and posting files to form endpoints, returning application/pdf on success.
Key features
- HTML, URL, and Markdown to PDF
- LibreOffice conversion for office formats
- Ordered PDF stage pipelines
- PDF/A, PDF/UA, and Factur-X validation
- Merge, split, stamp, and sign PDFs
- Screenshots and page rendering
- Webhook and bucket delivery options
- Split Chromium and LibreOffice images
Use cases
- Server-side HTML or URL printing
- Office document to PDF microservice
- Archival PDF/A compliance workflows
- E-invoice PDF generation
- Automated report assembly pipelines