Hi,
I wrote a java program to generate my company's client monthly statement and all other reports. The only problem is calling the pdflatex.exe process for each statement is quite slow. Even I use 4-6 threads to run the job, it still need couple hours for thousands of client statements. Is there any way to speed up the compiling time? is it possible to compile multiple similar files at one time to save some time?
Thanks,
art
Others ⇒ Use LaTeX for client statement
NEW: TikZ book now 40% off at Amazon.com for a short time.

- EnriqueVilla
- Posts: 20
- Joined: Thu Jun 26, 2025 10:31 pm
Re: Use LaTeX for client statement
Hi Art, sounds like a solid setup! Unfortunately, pdflatex isn't great at batch compiling multiple files in one go. One trick you could try is merging multiple statements into a single LaTeX file (like one per page), compile once, then split the PDF afterward. It reduces overhead per compilation and might save you a good chunk of time.