Python routines (under Windows) that will save the state of a printer (by its name) and then apply these settings to the printer. Pywin32 exposes the entire Windows API, including printing interface. You need to use this interface to create two Python functions: stat = get_printer_state(printer_name) apply_printer_state(printer_name, stat) Printer name will be the name given by Windows to this printer. The function must be able to save and apply these settings: - Page size (according to size and not paper ID) - Paper orientation - Copies - Tray - Color/BW It must support all paper sizes defined by the printer driver, regardless of any paper ID dictionary in the system.
## Deliverables
1) Complete and fully-functional working program(s) in the form of a Python script.
2) Deliverables must be in ready-to-run condition, as follows:
Python script with the two specified functions, and a main function showing the two running.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Python 2.4 / 2.5 Pywin Windows XP/Vista All code must be pure Python code, using the Win32 API via Pywin. Cannot use other frameworks.