In the lpr command, you can specify a file of any data format that CUPS supports, such as PS, BMP, TIFF, or JPEG.
For details about the data formats that CUPS supports, see the homepage for the Common UNIX Printing System (http://www.cups.org/).
![]() |
For restrictions on the lpr command, see the Lpr Options Guide (example: lproptions-mx890-3.70JP.txt).
- For Fedora 15/openSUSE 11.4
- For Ubuntu 11.04 |
When you use the lpr command to print a file, enter the command as follows:
[user@zzz /yyy]$ lpr -P [printer_name] [filename] {-o option}
![]() |
|
Example: Printing Sample.png in grayscale
[user@zzz /yyy]$ lpr -P MX890USB Sample.png -o CNGrayscale
Example: Printing Sample.png with A5 Page Size
[user@zzz /yyy]$ lpr -P MX890USB Sample.png -o PageSize=a5
Example: Printing Sample.png on a paper size of 150 x 150mm (Custom Paper Size)
[user@zzz /yyy]$ lpr -P MX890USB Sample.png -o PageSize=Custom.150x150mm