Say I'm writing a Java program with a GUI, and I'd like to generate nicely formated pdf results. I'm quite familiar with both LaTeX and Java, what is the best way to include the necessary LaTeX files to generate reports with my program when distributing it on windows, and then compile them with java calling the necessary programs?
Edit Especially looking for F/OSS that can be bundled with my program when distributed.