1

lpr -# 2 1-2.pdf mixes the document's page order.

The first page is printed two times, then page two is printed two times.

Whereas this hacky loop keeps the page order

for i in {1..2} do lpr 1-2.pdf done 

Is this really by design?


Arch Linux LTS

3
  • There are several different implementations of lpr. What OS or Linux/BSD distribution/version are you running? Commented Dec 19, 2023 at 8:57
  • 1
    Have you looking at man lpr to see if there is an option that enables collate mode? Commented Dec 19, 2023 at 8:58
  • @ChrisDavies grepping man lpr shows no results Commented Dec 19, 2023 at 9:06

1 Answer 1

3

Verbatim from https://www.cups.org/doc/options.html:

Copies are normally not collated for you. Use the -o collate=true option to get collated copies:

lp -n num-copies -o collate=true filename lpr -#num-copies -o collate=true filename 
2
  • 1
    I don't see this option in mannor --help Commented Dec 19, 2023 at 9:23
  • The collation is done by the backend, so all that lp or lpr does is set a flag in the spool queue saying how many copies to do. -o ... is just a generic way for these 2 commands to pass on options to the backend or intermediate programs. All the possible options cannot be listed, as they are invented by the backend, eg "papertray=bottom". Use lpoptions to list the options for the printer, but some options will be done by cups itself, hence the need to read the cups documentation too. Commented Dec 19, 2023 at 13:40

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.