Hi,

iText is a really wonderful tool, yet I do have some troubles concerning printing. I have a big Java-application, that produces lots of PDF-files. One for each customer. Now I want them ALL printed as well. I tried the method printDocumentSilent, which just prints the last of the files I produced. Next I tried printDocument, which seems to work, but always comes up with an additional screen from Adobe, which is very disturbing once you have to print more than 100 files. I tried to put the printDocumentSilent-method in a thread, but this way also only one gets printed, and you cannot predict which one it will be. Strangely the method leaves a Process of Acrobat running. It seems, that after sending the File to the printer, it doesn't close Acrobat properly. Next I tried the way described on iText ( Runtime.getRuntime().exec("cmd.exe start /C acrord32 /p /h" + "mypdffile.pdf");), but that just didn't do anything. What else can I do now? I really need the possibility to print the documents (and I mean more than just one).

Any help highly appreciated!

Reply via email to