I am using python 2.7 and win32print. I can successfully change the orientation between portrait and landscape:
PRINTER_DEFAULTS = {\"DesiredAccess\":win32pr
from ctypes import windll windll['winspool.drv'].AdvancedDocumentPropertiesA(None, pHandle.handle, '300LN1', None, None)