K
K
Kirill Gladkih2020-07-11 13:39:25
linux
Kirill Gladkih, 2020-07-11 13:39:25

How to change CUPS print orientation?

Good afternoon!

Set up a printer on Ubuntu via CUPS. I print by air (airprint), everything works. But here's the problem: the page orientation is incorrect, which is why it smears 1 page on 2:
Print:
-------
X
X
X
-------

As needed:
-------
XXX
-------

Googled that the parameter is configured in the PPD config:

*Landscape Orientation: Plus90

I tried both options, the result is the same (Plus90 / Minus90).

I print PDF (if it is important). I did not find anything in the CUPS interface, where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
t_q_l, 2020-07-23
@t_q_l

Try to /etc/cups/printers.confspecify the option in the file in the section for your printer orientation-requested:

<DefaultPrinter YourPrinterName>
..
Option orientation-requested 4
..
</DefaultPrinter>

Possible options for page orientation type :
orientation-requested=3 - portrait orientation (no rotation)
orientation-requested=4 - landscape orientation (90 degrees)
orientation-requested=5 - reverse landscape or seascape orientation (270 degrees)
orientation-requested=6 - reverse portrait or upside- down orientation (180 degrees)

Don't forget to restart the CUPS service:
sudo systemctl restart cups.service

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question