Copy link to clipboard
Copied
Hello, I'd like to print with a command line, but when I execute adobe reader with the command /t, then a PDF file is printed on a default printer. Is it possible to print with a command line and set printer and print settings?
Copy link to clipboard
Copied
You can specify the following settings only:
/t <filename> <printername> <drivername> <portname>
Copy link to clipboard
Copied
So i cannot set page orientation, number of pages, etc.?
Thanks!
Copy link to clipboard
Copied
No.
Copy link to clipboard
Copied
And is possible to show only print dialog before printing? Thank you for your answers.
Copy link to clipboard
Copied
Yes. Use /p instead of /t to do that.
Copy link to clipboard
Copied
Window is still opening with /p. I am using Acrobat Reader DC version 2021.001.20145.
Copy link to clipboard
Copied
Reader is designed to open the window and leave it open. It is not designed for automatic UI-less printing.
Copy link to clipboard
Copied
Well yes, you can't display just the Print dialog and not the application window that hosts it...
Copy link to clipboard
Copied
Ok, then, is possible to print without showing print dialog? 🙂
Copy link to clipboard
Copied
Yes, with the /t switch...
Copy link to clipboard
Copied
No, the command line has no such options, and Reader has no API to set them. You might be able to do this with paid-for Acrobat via complex JavaScript, not sure.
Copy link to clipboard
Copied
No, it's the same for both applications. And JS can't be used from the command-line.