2 .\" "$Id: filter.man 5327 2006-03-23 19:53:24Z mike $"
4 .\" filter man page for the Common UNIX Printing System (CUPS).
6 .\" Copyright 1997-2006 by Easy Software Products.
8 .\" These coded instructions, statements, and computer programs are the
9 .\" property of Easy Software Products and are protected by Federal
10 .\" copyright law. Distribution and use rights are outlined in the file
11 .\" "LICENSE.txt" which should have been included with this file. If this
12 .\" file is missing or damaged please contact Easy Software Products
15 .\" Attn: CUPS Licensing Information
16 .\" Easy Software Products
17 .\" 44141 Airport View Drive, Suite 204
18 .\" Hollywood, Maryland 20636 USA
20 .\" Voice: (301) 373-9600
21 .\" EMail: cups-info@cups.org
22 .\" WWW: http://www.cups.org
24 .TH filter 7 "Common UNIX Printing System" "23 March 2006" "Easy Software Products"
26 filter \- cups file conversion filter interface
29 job user title num-copies options [
33 The CUPS filter interface provides a standard method for adding support for
34 new document types to CUPS. Each filter is capable of converting from one
35 or more input formats to another format that can either be printed directly
36 or piped into another filter to get it to a printable format.
38 Filters \fBmust\fR be capable of reading from a filename on the command-line
39 or from the standard input, copying the standard input to a temporary
40 file as required by the file format. All output \fBmust\fR be sent to the
43 The command name (argv[0]) is set to the name of the destination printer.
45 Messages sent to stderr are generally logged to
46 printer-state-message attribute and the current \fIErrorLog\fR.
47 Each line begins with a standard prefix:
52 Sets the printer-state-message attribute and adds the specified
53 message to the current \fIErrorLog\fR using the "alert" log level.
56 ATTR: attribute=value [attribute=value]
58 Sets the named job attribute(s). Typically this will be used to
59 set the job-remote-id attribute.
64 Sets the printer-state-message attribute and adds the specified
65 message to the current \fIErrorLog\fR using the "critical" log level.
70 Sets the printer-state-message attribute and adds the specified
71 message to the current \fIErrorLog\fR using the "debug" log level.
76 Sets the printer-state-message attribute and adds the specified
77 message to the current \fIErrorLog\fR using the "debug2" log level.
82 Sets the printer-state-message attribute and adds the specified
83 message to the current \fIErrorLog\fR using the "emergency" log level.
88 Sets the printer-state-message attribute and adds the specified
89 message to the current \fIErrorLog\fR using the "error" log level.
94 Sets the printer-state-message attribute. If the current \fILogLevel\fR
95 is set to "debug2", also adds the specified message to the
96 current \fIErrorLog\fR using the "info" log level.
101 Sets the printer-state-message attribute and adds the specified
102 message to the current \fIErrorLog\fR using the "notice" log level.
105 PAGE: page-number #-copies
109 Adds an entry to the current \fIPageLog\fR. The first form adds
110 #-copies to the job-media-sheets-completed attribute. The second
111 form sets the job-media-sheets-completed attribute to #-pages.
114 STATE: printer-state-reason [printer-state-reason ...]
116 STATE: + printer-state-reason [printer-state-reason ...]
118 STATE: - printer-state-reason [printer-state-reason ...]
120 Sets, adds, or removes printer-state-reason keywords to the
121 current queue. Typically this is used to indicate media, ink, and
122 toner conditions on a printer.
127 Sets the printer-state-message attribute and adds the specified
128 message to the current \fIErrorLog\fR using the "warning" log level.
130 .SH ENVIRONMENT VARIABLES
131 The following environment variables are defined by the CUPS
132 server when executing the filter:
137 The default text character set, typically utf-8.
142 When a job is submitted to a printer class, contains the name of
143 the destination printer class. Otherwise this environment
144 variable will not be set.
149 The MIME type associated with the file (e.g.
150 application/postscript).
155 The directory where data files can be found.
160 The root directory of the server.
165 The device-uri associated with the printer.
170 The MIME type associated with the printer (e.g.
171 application/vnd.cups-postscript).
176 The default language locale (typically C or en).
181 The standard execution path for external programs that may be run by
187 The full pathname of the PostScript Printer Description (PPD)
188 file for this printer.
193 The name of the printer.
198 The recommended amount of memory to use for Raster Image
204 The name and version number of the server (typically CUPS/1.2).
209 The timezone of the server.
214 The user executing the filter, typically "lp" or "root"; consult the
215 \fIcupsd.conf(5)\fR file for the current setting.
218 While the filter interface is compatible with System V interface
219 scripts, it will only work with the System V interface script as the
220 only filter. Typically the interface script will be provided via the
221 \fIlpadmin(8)\fR command using the \fI-i\fR option.
223 \fIbackend(1)\fR, \fIcupsd(8)\fR,
225 http://localhost:631/help
227 Copyright 1997-2006 by Easy Software Products, All Rights Reserved.
229 .\" End of "$Id: filter.man 5327 2006-03-23 19:53:24Z mike $".