Re: Qt issue with printing landscape-oriented images

Alexander Pevzner <[email protected]> Sat, 1 Mar 2025 00:40:26 +0300
Newsgroups dev.linux.lists.printing-architecture
Message-ID <[email protected]>
Hi Zdenek,

On 2/26/25 12:25 PM, Zdenek Dohnal wrote:
> To be honest I have never seen IPP attribute landscape  :D - I know 
> there is IPP attribute 'orientation-requested' which is used for setting 
> whether you want portrait, landscape, etc.

Honestly, me too.

I has discussed this issue with Till in the OpenPrinting Telegram group.

He told that best of all for Qt is to use the IPP-standard 
orientation-requested attribute instead of the CUPS-specific landscape 
attribute, but as Qt moves to CPDB, it is good enough just to use the 
landscape attribute correctly, as a temporary solution.

Seems tha Qt people have accepted out simple patch into master and plan 
to backport to older releases.

> Based on the code for image it looks like landscape is really a thing, 
> and if okular wants to do landscape this way, it should pass 
> landscape=true instead of false.

Yes, exactly. Actually, all current Qt programs are affected, not only 
okular.

-- 

	Wishes, Alexander Pevzner ([email protected])