2

If I do

lp -o sides=two-sided-long-edge -n 3 -d printer8 test.pdf

then it prints test.pdf 3 times in duplex, but it first prints all the pages 1's (with page 2 on the back), then all the page 3's (with page 4 on the back) and so on.

This is annoying, as I then have to manually assemble the 3 documents afterwards.

I can solve it by

for f in $(seq 3); do
   lp -o sides=two-sided-long-edge -d printer8 test.pdf
done

but that doesn't seam like a good solution.

Question

Is it possible to have lp print one document to the end?

1

1 Answer 1

4

Use the "collate" option to enable print collation (which is disabled by default):

lp -n num-copies -o Collate=True filename

Source (CUPS documentation)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .