How can I specify "fit to page" when printing on the command line with lpr?

16,717

Solution 1

I solved using the scaling option:

lpr -o scaling=100 image.jpg

Solution 2

Old thread, but the option -o fit-to-page works.

Share:
16,717

Related videos on Youtube

Joril
Author by

Joril

Updated on September 18, 2022

Comments

  • Joril
    Joril almost 2 years

    I'm trying to print an image from the command line, using lpr, but it ends up printing 4 pages instead of just one. Is there a way to tell lpr to fit the image to the page?

  • Skippy le Grand Gourou
    Skippy le Grand Gourou about 8 years
    Note that as of CUPS 2.1, the legacy option -o fitplot (CUPS 1.3) still seems to work.
  • L29Ah
    L29Ah over 4 years
    Doesn't seem to work with lpr supplied by CUPS.
  • L29Ah
    L29Ah over 4 years
    Doesn't work as of CUPS 2.3.0.