Running the following line of python causes Adobe Acrobat to launch
win32api.ShellExecute(0, "print", "myC.pdf", None, ".", 0)
Adobe is my default PDF viewer. Why is Adobe opening? How can I prevent this from happening?
The script meant to run many times on a slow PC.
I do not understand how print
works from ShellExecute
. Typing print myC.pdf
in the command prompt gives me the error "Unable to initialize device PRN". A little background would be appreciated.