1 2 3 4 5 6 7 8
import cups PRINTER = 'Canon_iP7200_series' def print(): conn = cups.Connection() conn.printFile(PRINTER, 'base.jpg', 'title', {})