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 /pingwill respond{ "message" : "pong" }in JSON form.GET /versionwill respond{ "version" : "1.0" }POST /pdfwill respond a PDF file or errors.
docker build -t arc-latex-be \
--build-arg=INSTALL_EXTRA_PACKAGES="texlive-lang-spanish texlive-fonts-recommended" \
.docker run -d --name latex -p "5050:5050" arc-latex-becurl localhost:5050/pdf --data-binary @demo.tex > demo.pdfdocker rm latex --force- Ubuntu 24.10
- pdflatex
- node 20
GNU GENERAL PUBLIC LICENSE, GPL-3.0
(c) Metadev, 2024.