Gotenberg

API

Self-hosted Docker API that converts HTML, URLs and Office files to PDF

Price
Free, open source
Access
None; optional basic auth

About

Open-source Docker image with an HTTP API that renders HTML, URLs and Markdown to PDF with Chromium and converts Office files with LibreOffice. You run it yourself; a rate-limited public demo exists for testing. MIT licensed.

What you can do with it

  • Render an HTML page or URL to PDF with headless Chromium
  • Convert Word, Excel and PowerPoint files to PDF with LibreOffice
  • Merge, split, watermark or encrypt existing PDF files

Get started

  1. Start the container with docker run
  2. POST a URL, HTML or Office file as multipart form data

Example

docker run --rm -p 3000:3000 gotenberg/gotenberg:8
# in another terminal (or try https://demo.gotenberg.dev first)
curl --request POST http://localhost:3000/forms/chromium/convert/url \
  --form url=https://sparksuite.github.io/simple-html-invoice-template/ \
  -o invoice.pdf

Details

Hosting
Self-hosted
Available in
Worldwide
Official SDKs
PHP
MCP server
None

Tasks

Alternatives

Other tools for the same tasks.

Last checked on .