If you have a question or need help, this is the place to be.
3 posts • Page 1 of 1
I'm hoping to automate printing of PDF files by using directory watcher. However, I could not find a way to actually get the files to print when they are found. Is there a way to get this set up? I assume simple keyboard shortcuts could be used, but that seems a bit messy. Are there plugins to directly print?
- Site Admin
- Posts: 5508
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
you can do it directly from python I believe this code should work.
This will only print to your default printer tho. If you need to print to something other then your default printer or you need to make settings changes for the print job it is going to be a lot more involved.
Code: Select all
import os os.startfile(r'C:\path\to\file_to_print.txt', 'print')