From: msweet
-lp -n num-copies filename -lpr -#num-copies filename +lp -n num-copies filename +lpr -#num-copies filename
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 +lp -n num-copies -o Collate=True filename +lpr -#num-copies -o Collate=True filename@@ -156,11 +156,11 @@ lpr -#num-copies -o Collate=True filename HREF="man-lprm.html">lprm(1) commands cancel a print job:
-cancel job-id -lprm job-id +cancel job-id +lprm job-id-
The job-id is the number that was reported to you by +
The job-id is the number that was reported to you by the lp command. You can also get the job ID using the lpq(1) or lpstat commands:
@@ -177,10 +177,10 @@ lpstat job to a new printer or class:-lpmove job-id destination +lpmove job-id destination-
The job-id is the number that was reported to you by +
The job-id is the number that was reported to you by the lp or lpstat commands. Destination is the name of a printer or class that you want to actually print the job. @@ -256,10 +256,10 @@ lpoptions -p printer -l
When Custom is listed for the PageSize option, you can specify custom media sizes using one of the following forms:
-lp -o media=Custom.WIDTHxLENGTH filename -lp -o media=Custom.WIDTHxLENGTHin filename -lp -o media=Custom.WIDTHxLENGTHcm filename -lp -o media=Custom.WIDTHxLENGTHmm filename +lp -o media=Custom.WIDTHxLENGTH filename +lp -o media=Custom.WIDTHxLENGTHin filename +lp -o media=Custom.WIDTHxLENGTHcm filename +lp -o media=Custom.WIDTHxLENGTHmm filename
where "WIDTH" and "LENGTH" are the width and length of the media in points, inches, centimeters, or millimeters, respectively.
@@ -294,6 +294,7 @@ page depending on the value of N: +The The The Aside from the web interface, you can use the lp command
+to release a held job: where "job-id" is the job ID reported by the lpstat
+command. The The The default is to use the size specified in the file. This feature depends upon an accurate size in
the print file. If no size is given in the file, the page may be
-scaled incorrectly! The Similarly, the The default is The This is typically used when printing on T-shirt transfer
+media or sometimes on transparencies.-o sides=two-sided-short-edge and -o
@@ -317,6 +318,7 @@ lp -o sides=one-sided filename
lpr -o sides=one-sided filename
+
, Selecting the Banner Page(s)
-o jobsheets=start,end option sets the banner
@@ -360,6 +362,60 @@ configuration; CUPS includes the following banner files:Holding Jobs for Later Printing
+
+-o job-hold-until=when option tells CUPS to
+delay printing until the "when" time, which can be one of the
+following:
+
+
+
+-o job-hold-until=indefinite; print only
+ after released by the user or an administrator-o job-hold-until=day-time; print from
+ 6am to 6pm local time-o job-hold-until=night; print from
+ 6pm to 6am local time-o job-hold-until=second-shift; print from
+ 4pm to 12am local time-o job-hold-until=third-shift; print from
+ 12am to 8am local time-o job-hold-until=weekend; print on Saturday
+ or Sunday-o job-hold-until=HH:MM; print at the specified
+ UTC timeReleasing Held Jobs
+
+
+lp -i job-id -H resume
+
+
+Setting the Job Priority
+
+-o job-priority=NNN option tells CUPS to
+assign a priority to your job from 1 (lowest) to 100 (highest),
+which influences where the job appears in the print queue. Higher
+priority jobs are printed before lower priority jobs, however
+submitting a new job with a high priority will not interrupt an
+Specifying the Output Order
-o outputorder=normal and -o outputorder=reverse options specify the order of the pages. Normal order prints page 1 first, page 2 second, and so forth. Reverse order prints page 1 last.Note: This feature depends upon an accurate size in
+
+
+Note:
+
+
+scaled incorrectly!
+
+Printing in Reverse Order
+
+-o outputorder=reverse option will print the
+pages in reverse order:
+lp -o outputorder=reverse filename
+lpr -o outputorder=reverse filename
+
+
+-o outputorder=normal option will
+print starting with page 1:
+lp -o outputorder=normal filename
+lpr -o outputorder=normal filename
+
+
+-o outputorder=normal for
+printers that print face down and -o outputorder=reverse
+for printers that print face up.
+
+Printing Mirrored Pages
+
+-o mirror option flips each page along the
+vertical access to produce a mirrored image:
+lp -o mirror filename
+lpr -o mirror filename
+
+
+Raw or Unfiltered Output
@@ -523,11 +618,11 @@ page-right=value-o page-top=value, and
margins:
-lp -o page-left=value filename -lp -o page-right=value filename -lp -o page-top=value filename -lp -o page-bottom=value filename -lpr -o page-left=value -o page-right=value -o page-top=value -o page-bottom=value filename +lp -o page-left=value filename +lp -o page-right=value filename +lp -o page-top=value filename +lp -o page-bottom=value filename +lpr -o page-left=value -o page-right=value -o page-top=value -o page-bottom=value filename
The value argument is the margin in points; each
@@ -545,5 +640,197 @@ lp -o prettyprint filename
lpr -o prettyprint filename
+
The -o nowrap option disables wrapping of long lines:
+lp -o nowrap filename +lpr -o nowrap filename ++ + +
CUPS supports several options that are only used when printing +image files. These options have absolutely no effect on PostScript, PDF, +HP-GL/2, or text files.
+ +The -o position=name option specifies the position of the
+image on the page:
+
+
center - Center the image on the page (default)
+
+ top - Print the image centered at the top of the page
+
+ left - Print the image centered on the left of page
+
+ right - Print the image centered on the right of the page
+
+ top-left - Print the image at the top left corner of
+ the page
+
+ top-right - Print the image at the top right corner of
+ the page
+
+ bottom - Print the image centered at the bottom of
+ the page
+
+ bottom-left - Print the image at the bottom left
+ corner of the page
+
+ bottom-right - Print the image at the bottom right
+ corner of the page
+
+The -o scaling=percent, -o
+ppi=value, and -o natural-scaling=percent
+options change the size of a printed image:
+
+
+lp -o scaling=percent filename +lp -o ppi=value filename +lpr -o natural-scaling=percent filename ++ +
The scaling=percent value is a number from 1 to 800
+specifying the size in relation to the page (not the image.) A
+scaling of 100 percent will fill the page as completely as the image
+aspect ratio allows. A scaling of 200 percent will print on up to 4
+pages.
+
+
The ppi=value value is a number from 1 to 1200 specifying the
+resolution of the image in pixels per inch. An image that is 3000x2400
+pixels will print 10x8 inches at 300 pixels per inch, for example. If
+the specified resolution makes the image larger than the page, multiple
+pages will be printed to satisfy the request.
+
+
The natural-scaling=percent value is a number
+from 1 to 800 specifying the size in relation to the natural
+image size. A scaling of 100 percent will print the image at its
+natural size, while a scaling of 50 percent will print the image
+at half its natural size. If the specified scaling makes the
+image larger than the page, multiple pages will be printed to
+satisfy the request.
+
+
The -o hue=value option will adjust the hue of the
+printed image, much like the tint control on your television:
+
+
+lp -o hue=value filename +lpr -o hue=value filename ++ +
The value argument is a number from -360 to 360 and represents
+the color hue rotation. The following table summarizes the change you'll see
+with different colors:
| Original | +hue=-45 | +hue=45 | +
|---|---|---|
| Red | +Purple | +Yellow-orange | +
| Green | +Yellow-green | +Blue-green | +
| Yellow | +Orange | +Green-yellow | +
| Blue | +Sky-blue | +Purple | +
| Magenta | +Indigo | +Crimson | +
| Cyan | +Blue-green | +Light-navy-blue | +
The default hue adjustment is 0. + +
The -o saturation=percent option adjusts the saturation
+of the colors in an image, much like the color control on your television:
+lp -o saturation=percent filename +lpr -o saturation=percent filename ++ +
The percent argument specifies the color saturation
+from 0 to 200. A color saturation of 0 produces a black-and-white
+print, while a value of 200 will make the colors extremely intense.
The default saturation is 100.
+ + +CUPS supports several options that are only used when printing +HP-GL/2 files. These options have absolutely no effect on PostScript, PDF, +image, or text files.
+ +The -o blackplot option specifies that all pens should
+plot in black:
+lp -o blackplot filename +lpr -o blackplot filename ++ +
The default is to use the colors defined in the plot file or the +standard pen colors defined in the HP-GL/2 reference manual from +Hewlett Packard. + +
The -o penwidth=value option specifies the default pen
+width for HP-GL/2 files:
+lp -o penwidth=value filename +lpr -o penwidth=value filename ++ +
The pen width value specifies the pen width in micrometers.
+The default value of 1000 produces lines that are 1 millimeter in width.
+Specifying a pen width of 0 produces lines that are exactly 1 pixel wide.
Note: + ++This option is ignored when the pen widths are set in the plot +file. + +