I am using the following cmd to print the pdf:
acroRD32.exe /t "file1.pdf" "printerName"
Everything works fine but one window pops up. Can anybody help me to disable it. I tried with various options included in this question but cannot succeed.
Any help is appreciated.
I successfully tested forking a delayed kill command before starting the print job.
Why even use Acrobat at all? This class that print silently for you without any executables or even a printer setup:
Sample Usage:
bool isPrinted = BatchPrint.PrintBinaryFile("file path", "Printer IP Address", "Queue Name", "User");
You cannot close the last open Acrobat window through the command line. From ancient history of programming scripts for Acrobat, I believe that there is no way to do this in an Acrobat script, either.
But you can close Acrobat from the command line, though it is a bit convoluted. For a pure MSDOS method for most Windows systems, create two files: called.bat and caller.bat.
caller.bat:
called.bat
Note that you can write scripts in many programming languages that accomplish the same task more elegantly.