default to duplex printing

workspace
Brendan Howell 6 years ago
parent 8a0726676e
commit ef67065889

@ -341,7 +341,7 @@ class Bureau(object):
self.log.debug("rendering with: " + self.html2pdf + htmlpath + " " + pdfpath) self.log.debug("rendering with: " + self.html2pdf + htmlpath + " " + pdfpath)
subprocess.call(self.html2pdf + htmlpath + " " + pdfpath + subprocess.call(self.html2pdf + htmlpath + " " + pdfpath +
" A4 1920px", shell=True) " A4 1920px", shell=True)
subprocess.call("lpr " + pdfpath, shell=True) subprocess.call("lpr -o sides=two-sided-long-edge -o InputSlot=Upper " + pdfpath, shell=True)
# TODO: make this asynchronous # TODO: make this asynchronous
def print_small(self, text, cut=True): def print_small(self, text, cut=True):

Loading…
Cancel
Save