Compile .tex to PDF
Upload a single .tex file or a .zip project archive,
configure your engine, and get a PDF — instantly.
Drop your file here
Supports .tex and .zip archives
API Reference
POST
/compile
Single .tex file
curl example
curl -X POST \ -F "file=@report.tex" \ -F "outputName=my-report" \ -F "engine=pdflatex" \ -F "runs=2" \ http://localhost:3000/compile \ -o my-report.pdf
POST
/compile/zip
ZIP project archive
curl example
curl -X POST \ -F "file=@project.zip" \ -F "mainFile=src/main.tex" \ -F "outputName=thesis" \ -F "engine=xelatex" \ -F "runs=2" \ http://localhost:3000/compile/zip \ -o thesis.pdf
GET
/health
Service health check
response
{ "status": "ok", "latex": true, "dockerImage": "texlive/texlive:latest" }
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file |
file | Yes | .tex or .zip file upload |
outputName |
string | No | Output PDF filename (without .pdf). Defaults to input filename. |
engine |
string | No | pdflatex | xelatex | lualatex. Default: pdflatex |
runs |
number | No | Compilation passes: 1–3. Use 2+ for refs/TOC. Default: 1 |
mainFile |
string | ZIP only | Relative path to main .tex inside archive. Auto-detected if only one .tex exists. |