Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java library to create PDF from LaTeX source [closed]

Tags:

java

pdf

latex

tex

I have Java program, which receives some data and generates LaTeX document.

I need Java library to create PDF file from generated LaTeX source.

Could you recommend me something, please?

like image 474
Edward Ruchevits Avatar asked Oct 23 '12 18:10

Edward Ruchevits


1 Answers

I agree with kurtzbot, LaTeX compilers are sophisticated pieces of software which cannot reasonably be rewritten in Java or any other language. If it were it would be a massive effort. To my knowledge there isn't even a C library implementing the compiler, one must us a command line program.

This is not to say that there aren't libraries which manage a build process, probably via system calls and monitoring temporary files (from the LaTeX build). For example, I know there is latexmk which performs such a task. If someone has made a Java implementation like it, I would bundle a LaTeX compiler and that manager into your program.

like image 53
Joel Berger Avatar answered Nov 14 '22 23:11

Joel Berger