Provides a pdflatex compiler as an endpoint in a container.
Exposes a POST
endpoint on container:5050/
to send a TeX file.
It will compile it with pdftex
and will return the final PDF.
Adapted from https://github.com/comsolid/pdflatex-saas
GET /ping
will respond{ "message" : "pong" }
in JSON form.GET /version
will respond{ "version" : "1.0" }
POST /pdf
will respond a PDF file or errors.
docker build -t latex-aas \
--build-arg=INSTALL_EXTRA_PACKAGES="texlive-lang-spanish texlive-fonts-recommended" \
.
docker run -d --name latex -p "5050:5050" latex-aas
curl localhost:5050/pdf --data-binary @demo.tex > demo.pdf
docker rm latex --force
- Ubuntu 24.10
- pdflatex
- node 20
GNU GENERAL PUBLIC LICENSE, GPL-3.0
(c) Metadev, 2024.