On Wed 18 Mar 2026 at 16:50:24 (-0400), Haines Brown wrote:
> In a new installation, when printing with lpr the output is
> landscape when it should be portrait.
> 
> When CUPS prints its test page, it is normal (portrait)
> 
> The -o option works
> 
>         $ lpr -o orientation-requested=3 <file> prints portrait
>         $ lpr -o orientation-requested=4 <file> prints landscape
> 
> When I print a file opened with emacs by means of Ctl-p, the
> result is landscape when it should be portrait.
> 
> The operating system is a fresh install and so driversĀ are up to
> date.
> 
> I do:
> 
>   $ lpoptions -p HP_LaserJet_Pro_M428f_M429f_8264A8 -o
>    orientation-requested=portrait

I'm not sure why you use digits with lpr and words with lpoptions.
Any reason?

>   This has no effect on the operation of lpr

What effect does it have in the configuration file. Indeed, what are
the contents?

And do you have any systemwide configuration set?

If nothing else works, perhaps read:

  https://wiki.debian.org/CUPSPdfToPdf

in conjunction with the printers PPD file.

Cheers,
David.

Reply via email to