]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - doc/help/options.html
Load cups into easysw/current.
[thirdparty/cups.git] / doc / help / options.html
index 8602247ebd8cac8d1a5c230c827807688b411b1d..d42b384dd42431795ff65bc39e65d7403cae8801 100644 (file)
@@ -1,7 +1,7 @@
 <HTML>
 <!-- SECTION: Getting Started -->
 <HEAD>
-       <TITLE>Printing and Options</TITLE>
+       <TITLE>Command-Line Printing and Options</TITLE>
 </HEAD>
 <BODY>
 
@@ -99,7 +99,37 @@ lpr -o landscape -o scaling=75 -o media=A4 filename.jpg
 <P>The available printer options vary depending on the printer.
 The standard options are described in the "<A
 HREF="#OPTIONS">Standard Printing Options</A>" section
-below.</P>
+below. Printer-specific options are also available and can be
+listed using the <B>lpoptions</B> command:</P>
+
+<PRE CLASS="command">
+lpoptions -p printer -l
+</PRE>
+
+<H3><A NAME="INSTANCES">Creating Saved Options</A></H3>
+
+<P>Saved options are supported in CUPS through <em>printer
+instances</em>. Printer instances are, as their name implies, copies
+of a printer that have certain options associated with them. Use the
+<B>lpoptions</B> command to create a printer instance:</P>
+
+<PRE CLASS="command">
+lpoptions -p printer/instance -o name=value ...
+</PRE>
+
+<P>The <CODE>-p printer/instance</CODE> option provides the name of
+the instance, which is always the printer name, a slash, and the
+instance name which can contain any printable characters except
+space and slash. The remaining options are then associated with the
+instance instead of the main queue. For example, the following
+command creates a duplex instance of the LaserJet queue:</P>
+
+<PRE CLASS="command">
+lpoptions -p LaserJet/duplex -o sides=two-sided-long-edge
+</PRE>
+
+<P>Instances <em>do not</em> inherit lpoptions from the main
+queue.</P>
 
 <H3><A NAME="COPIES">Printing Multiple Copies</A></H3>
 
@@ -141,6 +171,33 @@ lpstat
 </PRE>
 
 
+<H2 CLASS="title"><A NAME="LPMOVE">Moving a Print Job</A></H2>
+
+<P>The <A HREF="man-lpmove.html">lpmove(8)</A> command moves a print
+job to a new printer or class:</P>
+
+<PRE CLASS="command">
+lpmove <I>job-id</I> <i>destination</i>
+</PRE>
+
+<P>The <I>job-id</I> is the number that was reported to you by
+the <B>lp</B> or <B>lpstat</B> commands. <i>Destination</i> is the
+name of a printer or class that you want to actually print the job.
+
+<BLOCKQUOTE><B>Note:</B>
+
+<P>The <B>lpmove</B> command is located in the system command
+directory (typically <VAR>/usr/sbin</VAR> or <VAR>/usr/local/sbin</VAR>),
+and so may not be in your command path. Specify the full path to the
+command if you get a "command not found" error, for example:
+
+<PRE CLASS="command">
+/usr/sbin/lpmove foo-123 bar
+</PRE>
+
+</BLOCKQUOTE>
+
+
 <H2 CLASS="title"><A NAME="OPTIONS">Standard Printing Options</A></H2>
 
 <P>The following options apply when printing all types of
@@ -196,6 +253,18 @@ file in the <CODE>PageSize</CODE>, <CODE>InputSlot</CODE>, and
 lpoptions -p printer -l
 </PRE>
 
+<P>When <CODE>Custom</CODE> is listed for the <CODE>PageSize</CODE> option, you can specify custom media sizes using one of the following forms:</P>
+
+<PRE CLASS="command">
+lp -o media=Custom.<I>WIDTH</I>x<I>LENGTH</I> filename
+lp -o media=Custom.<I>WIDTH</I>x<I>LENGTH</I>in filename
+lp -o media=Custom.<I>WIDTH</I>x<I>LENGTH</I>cm filename
+lp -o media=Custom.<I>WIDTH</I>x<I>LENGTH</I>mm filename
+</PRE>
+
+<P>where "WIDTH" and "LENGTH" are the width and length of the media in points, inches, centimeters, or millimeters, respectively.</P>
+
+
 <H3><A NAME="ORIENTATION">Setting the Orientation</A></H3>
 
 <P>The <CODE>-o landscape</CODE> option will rotate the page 90
@@ -290,6 +359,12 @@ configuration; CUPS includes the following banner files:</P>
 
 </UL>
 
+
+<H3><A NAME="OUTPUTORDER">Specifying the Output Order</A></H3>
+
+<P>The <CODE>-o outputorder=normal</CODE> and <CODE>-o outputorder=reverse</CODE> 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.</P>
+
+
 <H3><A NAME="PAGERANGES">Selecting a Range of Pages</A></H3>
 
 <P>The <CODE>-o page-ranges=pages</CODE> option selects a range