Printing hard copies

I was hoping to get some direction on how to use python to automate printing of hard copies of files (eg PDFs, Word). I am using python 3.7.4, 32 bit on windows. I have looked online for resources and think that it should be possible to do this using win32, but haven’t been able to figure out the exact script to use.

Thanks!

1 Like

There’s some information on printing PDF documents here. http://timgolden.me.uk/python/win32_how_do_i/print.html#shellexecute
Have you already tried this?

The win32print module’s api documentation is here: http://timgolden.me.uk/pywin32-docs/win32print.html

1 Like

Thank you. Yes I had seen this material - and it did seem to work initially but I was unable to use the suggested script to print out my own documents. Could be an issue on my end - I’ll try again. Thanks again!

1 Like