pycups
pycups copied to clipboard
Print a text file with LANDSCAPE option
Hello,
I can't change the Orientation where i print a text file
conn.printFile(selectedPrinter, myfile, "test", {'INT_IPP_ORIENT_CONSTANT': 'LANDSCAPE'})
can you give me the good parameter to do this.
Cordialy,
Not tested but man page for lp have the following option and values:
-o orientation-requested=4
Prints the job in landscape (rotated 90 degrees counter-clockwise).
-o orientation-requested=5
Prints the job in landscape (rotated 90 degrees clockwise).
-o orientation-requested=6
Prints the job in reverse portrait (rotated 180 degrees).