Any way to print files with EG?

If you have a question or need help, this is the place to be.
Post Reply
therealbiglou
Experienced User
Posts: 125
Joined: Sat May 19, 2012 4:33 am

Any way to print files with EG?

Post by therealbiglou » Wed Aug 07, 2019 7:20 pm

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?

slattynan
Experienced User
Posts: 63
Joined: Fri Jul 06, 2018 12:15 pm

Re: Any way to print files with EG?

Post by slattynan » Fri Oct 11, 2019 6:34 am

Sorry for the slow response, I use the following-

http://www.columbia.edu/~em36/pdftoprinter.html


Works well for me. I use it with the Alexa plugin to print shopping lists.... Every little helps :D

User avatar
kgschlosser
Site Admin
Posts: 5144
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Any way to print files with EG?

Post by kgschlosser » Wed Oct 23, 2019 6:33 pm

you can do it directly from python I believe this code should work.

Code: Select all

import os

os.startfile(r'C:\path\to\file_to_print.txt', 'print')
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.
If you like the work I have been doing then feel free to Image

Post Reply