pycups

How to access the printers connected to a local machine when CUPS is installed in an Ubuntu Server

ぐ巨炮叔叔 提交于 2019-12-11 18:23:47
问题 I have an Odoo Instance running in an Ubuntu Server.I installed the module base_report_to_printer ( Module link : https://github.com/OCA/report-print-send/tree/11.0/base_report_to_printer ) for printing the pdf reports directly to default printer instead of printing it from the saved pdf .I checked the module by installing printer in my local machine and running odoo's local instance and it is working perfectly.But when I run odoo in My Ubuntu Server I am not able to access the printers

Python- How to communicate with printer

自闭症网瘾萝莉.ら 提交于 2019-12-11 05:39:48
问题 I've been searching for a few days on how to improve a program I wrote for work. The program, which uses python 3.6, simply sends pre-formatted .doc files to the printer, but I can't seem to find a way on how to signal the function to stop sending the file to print once the printer has run out of paper. The number of documents printed varies, so I can't just use a simple range function. I've looked into the win32print module and the pycups module (which won't pip install not matter what I try