aslushnikov / latex-online

Online latex compiler. You give it a link, it gives you PDF
http://latexonline.cc
MIT License
491 stars 89 forks source link

How to compile a Tarball via API? #55

Closed yegor256 closed 3 years ago

yegor256 commented 5 years ago

Is it possible to compile a tarball via the HTTP API? I have a number of files, with the main article.tex among them. I want to send them all at once via some PUT or POST request and get the final article.pdf back. Is it possible?

therealcljohn commented 5 years ago

Hi @yegor256, you can use the following API for sending a tarball: curl -F 'files[]=@/path/to/my.tar.gz' -o ./output.pdf 'http:/localhost:2700/data?command=xelatex&target=document.tex'

aslushnikov commented 3 years ago

@yegor256 check out latexonline script - it does precisely this.