talira

Gotenberg

A Docker-based API for PDF

open sourceMITself-hostablefree

Gotenberg is a self-hosted HTTP API, shipped as a Docker image, that converts URLs, HTML and Markdown to PDF with headless Chromium and Word, Excel, PowerPoint and 100+ other formats with LibreOffice. You send files as multipart/form-data and get a PDF back, so your own app image needs no Chromium, LibreOffice or fonts. It can also merge, split, rotate, stamp, sign, encrypt, redact and optimize PDFs, fill or flatten forms, and validate and remediate PDF/A, PDF/UA and Factur-X. Results can be delivered by webhook to a presigned URL such as an S3 bucket.

Ways to install

Problems it solves

  • I don't want to install Chrome and LibreOffice inside my app's Docker image just to make PDFs
  • convert uploaded Word, Excel and PowerPoint files to PDF from a Node or Go service
  • need one internal HTTP endpoint every service can POST HTML to and get a PDF back
  • headless Chrome keeps leaking memory and crashing in our web workers when we print invoices
  • turn a Markdown file into a nicely styled PDF from a backend job
  • our docx to pdf conversion shells out to soffice and it hangs under load
  • merge several generated PDFs into one and stamp a watermark on every page
  • produce PDF/A files for archiving without buying a commercial SDK
  • make e-invoices with the Factur-X / ZUGFeRD XML embedded in the PDF
  • run document conversion as a sidecar container in Kubernetes
  • get the finished PDF uploaded straight to an S3 bucket when a long conversion is done
  • self-hosted replacement for a paid HTML to PDF API so documents never leave our network

Features

  • URL, HTML and Markdown to PDF via headless Chromium
  • Office documents (100+ formats) to PDF via LibreOffice
  • merge, split, select, rotate and stamp PDFs
  • fill or flatten PDF forms
  • PDF/A, PDF/UA and Factur-X validation and remediation
  • sign, timestamp, encrypt, redact and optimize
  • render pages as images and screenshots
  • read and write metadata, bookmarks and attachments
  • webhooks that upload results to a presigned URL
  • image variants for AWS Lambda and Cloud Run

Capabilities

Has an APIplan not known
Sends webhooksplan not known

Alternatives

The same job

These do what Gotenberg does.

  1. ironpress HTML to PDF. In process. In pure Rust.
  2. Microsoft Graph The gateway to data and intelligence in Microsoft cloud services like Microsoft Entra and Microsoft 365
  3. Api2Pdf Serverless REST API for HTML, URL, Office and Markdown to PDF
  4. iLoveAPI PDF and image tools for developers
  5. Aspose.Words Create, edit, render and convert Word documents to multiple formats without using external software
  6. Collabora Online Collaborative open-source document editing, controlled by you

Compare Gotenberg with the top 3