Send print jobs on a USB laser printer
drskullster opened this issue · comments
Jonathan Berger commented
We should be able to print on a USB laser printer. We can use CUPS, there's a Python binding called pycups that we should test.
Jonathan Berger commented
CUPS is set up and working on the Pi.
iooner commented
print subprocess.Popen("lpr -P NOM_IMPRIMANTE /path/path/fessestoprint.jpg", shell=True, stdout=subprocess.PIPE).stdout.read()
Cups : lpr -P NOM_IMPRIMANTE /path/path/fessestoprint.jpg
iooner commented
Doc for LPR cups : https://www.cups.org/doc/options.html