On Mon 23 Mar 2026 at 07:09:55 (-0400), Haines Brown wrote:
> On Sun, Mar 22, 2026 at 11:01:16PM -0500, David Wright wrote:
> 
> > I think the 1024 sizes above merely reflect the pipe's buffer size:
> > the corresponding d file will be the true size.
> > 
> > CUPS is based on a PDF workflow, so the first step with text is to
> > convert it to a PDF. I think that's the filter which is producing
> > landscape pages, and I think that the second filter, pdftopdf, is
> > autorotating such pages before it gets sent to the printer by the
> > final filter.
> > 
> > I'm assuming that when you print an ordinary portrait PDF, you get
> > a normal-looking portrait document. 
> 
> No, when I print a pdf, the output is lansscape.

IOW, you expect A:

  |--------------|
  |              |
  | TEXTtopTTEXT |
  | TEXTTEXTTEXT |
  | TEXTTEXTTEXT |
  | TEXTTEXTTEXT |
  | TEXTTEXTTEXT |
  | TEXTTEXTTEXT |
  | TEXTTEXTTEXT |
  | TEXbottomEXT |
  |              |
  |--------------|

but get one of B (shrunk to all fit on one sheet):

  |--------------------------------|
  |          texttopttext          |
  |          texttexttext          |
  |          texttexttext          |
  |          texbottomext          |
  |--------------------------------|

or C (at 100% and hence requiring a second sheet for the bottom half):

  |--------------------------------|
  |      TEXTTEXTtopTTEXTTEXT      |
  |      TEXTTEXTTEXTTEXTTEXT      |
  |      TEXTTEXTTEXTTEXTTEXT      |
  |      TEXTTEXTTEXTTEXTTEXT      |
  |--------------------------------|

  |--------------------------------|
  |      TEXTTEXTTEXTTEXTTEXT      |
  |      TEXTTEXTTEXTTEXTTEXT      |
  |      TEXTTEXTTEXTTEXTTEXT      |
  |      TEXTTEXbottomEXTTEXT      |
  |--------------------------------|

or D, like C but without the second page (even under your chair). :)

Which?

> > > Where is the RFC?
> > 
> >   $ wget https://www.ietf.org/rfc/rfc8011.txt
> > at page 122.
> 
> All is does it to define the fuction.

That's what RFCs do. I thought that's what you wanted, to supplement
your understanding of   man lp[r].

> > Before you make a portrait option permanent, I would find out what
> > happens with documents that have mixed orientation from page to page.
> > (There's a "mixed.pdf" document available on the wiki page referenced
> > earlier.) 
> 
> Interesting, when I printed it, the first (portait) page simply 
> not printed. The following landscape pages printed correctly 
> (landscape)
> 
> I could use lpoptions to make portrait default, but an uncertain 
> of its consequences.

On Mon 23 Mar 2026 at 07:16:29 (-0400), Haines Brown wrote:
> David, I misspoke. The first page of the mixed.pdf did print. I 
> found it under my chair. In short, lpr on mixed.pdf printed just 
> fine. 

"Just fine" seems to contradict the statement made above:

> No, when I print a pdf, the output is lansscape.

Cheers,
David.

Reply via email to