For the past month or two, I have been tearing my hair out with this. I need to print multiple copies of a PDF file in Java. I have tried multiple libraries, including Apache PDFBox, IcePDF and others, I have tried many codes I have been able to find, but the result is always the same, both on Windows and Linux, only one copy of PDF is printed, be it to PDF or to a regular printer. I have also tried a number of printers, even one that was enterprise grade, so that I was able to rule out the incompatibility of my printers. Has anyone ever encountered this problem? I would like to use system calls to programs like Adobe Reader/Foxit Reader as a last resort. Thank you for all your help :)
// What I need is a way to print multiple copies in one print job, not in a loop creating multiple print jobs, sorry that it was unclear from the original post.