A Docker-powered stateless API for PDF files
Gotenberg provides a developer-friendly API to interact with powerful tools like Chromium and LibreOffice for converting numerous document formats (HTML, Markdown, Word, Excel, etc.) into PDF files, and more!
This is a fork of the Gotenberg repo designed the minimize the number of vulnerabilities. We do this by removing the Chromium module (which was not needed for our particular use-case) and by building a distroless image.
In order to build and push an updated image, follow these steps
- Check https://go.dev/dl/ for the latest
GOLANG_VERSION - Check https://fonts.google.com/noto/specimen/Noto+Color+Emoji for the latest
NOTO_COLOR_EMOJI_VERSION - Check https://gitlab.com/pdftk-java/pdftk/-/releases for the latest
PDFTK_VERSION - Update those respective build arguments in
scripts/release.sh - Then run
bash script/release.sh <URL> <tag>
Open a terminal and run the following command:
docker run --rm -p 3000:3000 gotenberg/gotenberg:8
Alternatively, using the historic Docker repository from our sponsor TheCodingMachine:
docker run --rm -p 3000:3000 thecodingmachine/gotenberg:8
The API is now available on your host at http://localhost:3000.
Head to the documentation to learn how to interact with it 🚀
Sponsorships help maintaining and improving Gotenberg - become a sponsor ❤️
