in the duplex mode, you can send it the list of all documents that are marked for the duplex printjob. Once you have configured your printer, e.g. Obviously, this only works under MS Windows. Note that you can also print using win32print, thereby saving you the trouble of using subprocess.call or "shelling out" with the win32api. While the official Windows dev center documentation mentions that you could use PRINTER_ACCESS_MANAGE_LIMITED on line 3, win32print does not have this more restricted (but essentially all that is required) global variable defined. > win32print.GetPrinter(handle, level).Duplex > win32print.SetPrinter(handle, level, attributes, 0) > attributes = win32print.GetPrinter(handle, level) > handle = win32print.OpenPrinter(name, printdefaults) > printdefaults = # Doesn't work with PRINTER_ACCESS_USE > name = win32print.GetDefaultPrinter() # verify that it matches with the name of your printer Note that this works best in a get/set operation: > import win32print This object has other common attributes like color settings (black
0 Comments
Leave a Reply. |