Print from command line

Copy link to clipboard
Copied
Hi
How can I Print PDF file from the command line ?
Thanks and Regards
Alon
Copy link to clipboard
Copied

Copy link to clipboard
Copied
they said It's not possible, I am looking for an answer that start with, it's possible ...
Must be a way to do that, even with other products of Adobe
Copy link to clipboard
Copied
It prints the PDF file. You can use Acrobat Reader or Adobe Acrobat for this.

Copy link to clipboard
Copied
there is somthing with AcroRd32.exe, can any one give some more details about it ?
Thank you

Copy link to clipboard
Copied
Okay,
Now I can print using AcroRd32.exe,
is there a way to know when I can kill the process ?
maybe a paramter that I can send to the AcroRd32.exe - and get back the status ?
or even better - is there a way to ask AcroRd32.exe to step down once the printing is finished ?
Many thanks for you help !
Alon
Copy link to clipboard
Copied
Why want you kill the process?
Copy link to clipboard
Copied
There is no command line option to close the document or quit Acrobat after printing. Didn't used to do this, but now we are stuck with it. So just manually close the document when you are done with the automatic printing.
Copy link to clipboard
Copied
Try this "timeout 4 & taskkill /f /im acrord32.exe"
Copy link to clipboard
Copied
Try with a loop and kill AcroRd32
For %%d in (%WorkDirectory%\in\*.pdf) do start AcroRd32.exe /n /s /o /h /t %%d PDFCreator & timeout 4 & taskkill AcroRd32.exe
Copy link to clipboard
Copied
ignore
Copy link to clipboard
Copied
for %%d in (%WorkDirectory%\in\*.pdf) do start AcroRd32.exe /n /s /o /h /t %%d PDFCreator & timeout 4 & taskkill /IM AcroRd32.exe

