pycups icon indicating copy to clipboard operation
pycups copied to clipboard

Print a text file with LANDSCAPE option

Open Kokukiller opened this issue 5 years ago • 1 comments

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,

Kokukiller avatar Mar 17 '20 17:03 Kokukiller

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).

TheLure avatar Apr 09 '20 12:04 TheLure