This section describes the features of each command and how to use them.
For information about the options that can be used and restrictions on combining options, see the following:

Options

Print Option Combinations (lpr)

Print Option Combinations (cif)

lpr command

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/).

When you use the lpr command to print a file, enter the command as follows:

[user@zzz /yyyy]$ lpr -P MP640USB [filename] {-o option}

If you change a printer setting through the CUPS Web interface, the new value becomes the default.

If you do not enter a registered printer name, the default printer is used.

Example: Printing Sample.png in grayscale

[user@zzz /yyyy]$ lpr -P MP640USB Sample.png -o CNGrayscale

Example: Printing Sample.png with A5 Page Size

[user@zzz /yyyy]$ lpr -P MP640USB Sample.png -o PageSize=a5

Example: Printing Sample.png on a paper size of 150 x 150mm (Custom Paper Size)

[user@zzz /yyyy]$ lpr -P MP640USB Sample.png -o PageSize=Custom.150x150mm

For information on other restrictions of the lpr command, see "Usage Restrictions of the lpr and cngpij commands" in "Main Restrictions."

cif command

To use the cif command, you must switch to other super user account using the su command.
The cif command can be used only with a USB connection.

When you use the cif command to print a file, enter the command as follows.
When the filename is omitted, the printer driver processes the data as being received from standard input only if the data is PPM.

[root@zzz /yyyy]# cifmp640 [filename] [option] > /dev/usb/lp0

The cif command can be used to print only the following data formats:

- TIFF: Uncompressed mode only

- BMP: Only 8-bit per color RGB

- PPM: Only 8-bit per color RGB (binary format)

- PNG: 8-bit per color RGB/8-bit Gray/Index/8-bit per color α RGB/8-bit α Gray

If a data format that cannot be printed is specified, the printer driver displays an error message and terminates processing.
If the file has multiple pages, only the first page is printed.

When you print with the cif command, the printer status and remaining ink levels are not displayed on the Status Monitor.

Enter the following command to display the version information, the instructions, the option lists, etc.

[root@zzz /yyyy]# cifmp640 --help

Example: Printing Sample.png in grayscale

[root@zzz /yyyy]# cifmp640 Sample.png --grayscale > /dev/usb/lp0

Example: Printing Sample.png with A5 Page Size

[root@zzz /yyyy]# cifmp640 Sample.png --papersize a5 > /dev/usb/lp0

Example: Printing Sample.png on a paper size of 150 x 150mm (Custom Paper Size)

[root@zzz /yyyy]# cifmp640 Sample.png --papersize user --paperwidth 15000 --paperheight 15000 > /dev/usb/lp0