aslushnikov / latex-online

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

Send file to Api #12

Closed ghost closed 8 years ago

ghost commented 8 years ago

Is there anyway to send a tex file directly to the API to use the engine to return pdf in return? If there was not can we do it? If we could, I am willing to help by your guidance

aslushnikov commented 8 years ago

Have you seen laton script? Looks like it does what you want: example

ghost commented 8 years ago

Hmm, Close. Let me make sure that we are on the same page. What I want is a service that has an API endpoint that is able to receive a tex file(or zip file of the whole thing) and return the pdf generated version of that. Laton looks to be a command line script, right?

For example, right now you accept URL, Github repo. I mean adding another one, which is tex file or a compressed package.

aslushnikov commented 8 years ago

Ah, yeah, laton uses such an api under the hood. At line 107 it creates a tarball, which sends via POST request to the endpoint (see line 112).

Will it work for you?

ghost commented 8 years ago

Yes. Right. It does it. Thanks a lot.