]> git.ipfire.org Git - thirdparty/cups.git/blame - man/filter.man
Remove svn:keywords since they cause svn_load_dirs.pl to complain about every file.
[thirdparty/cups.git] / man / filter.man
CommitLineData
ef416fc2 1.\"
c07d5b2d 2.\" "$Id: filter.man 177 2006-06-21 00:20:03Z jlovell $"
ef416fc2 3.\"
4.\" filter man page for the Common UNIX Printing System (CUPS).
5.\"
bd7854cb 6.\" Copyright 1997-2006 by Easy Software Products.
ef416fc2 7.\"
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
13.\" at:
14.\"
15.\" Attn: CUPS Licensing Information
16.\" Easy Software Products
17.\" 44141 Airport View Drive, Suite 204
18.\" Hollywood, Maryland 20636 USA
19.\"
20.\" Voice: (301) 373-9600
21.\" EMail: cups-info@cups.org
22.\" WWW: http://www.cups.org
23.\"
80ca4592 24.TH filter 7 "Common UNIX Printing System" "23 March 2006" "Easy Software Products"
ef416fc2 25.SH NAME
bd7854cb 26filter \- cups file conversion filter interface
ef416fc2 27.SH SYNOPSIS
28.B filter
29job user title num-copies options [
30.I filename
31]
32.SH DESCRIPTION
33The CUPS filter interface provides a standard method for adding support for
34new document types to CUPS. Each filter is capable of converting from one
35or more input formats to another format that can either be printed directly
36or piped into another filter to get it to a printable format.
37.LP
bd7854cb 38Filters \fBmust\fR be capable of reading from a filename on the command-line
ef416fc2 39or from the standard input, copying the standard input to a temporary
bd7854cb 40file as required by the file format. All output \fBmust\fR be sent to the
ef416fc2 41standard output.
42.LP
43The command name (argv[0]) is set to the name of the destination printer.
bd7854cb 44.SH LOG MESSAGES
45Messages sent to stderr are generally logged to
46printer-state-message attribute and the current \fIErrorLog\fR.
47Each line begins with a standard prefix:
48
49.TP 5
50ALERT: message
51.br
52Sets the printer-state-message attribute and adds the specified
53message to the current \fIErrorLog\fR using the "alert" log level.
54
55.TP 5
56ATTR: attribute=value [attribute=value]
57.br
58Sets the named job attribute(s). Typically this will be used to
59set the job-remote-id attribute.
60
61.TP 5
62CRIT: message
63.br
64Sets the printer-state-message attribute and adds the specified
65message to the current \fIErrorLog\fR using the "critical" log level.
66
67.TP 5
68DEBUG: message
69.br
70Sets the printer-state-message attribute and adds the specified
71message to the current \fIErrorLog\fR using the "debug" log level.
72
73.TP 5
74DEBUG2: message
75.br
76Sets the printer-state-message attribute and adds the specified
77message to the current \fIErrorLog\fR using the "debug2" log level.
78
79.TP 5
80EMERG: message
81.br
82Sets the printer-state-message attribute and adds the specified
83message to the current \fIErrorLog\fR using the "emergency" log level.
84
85.TP 5
86ERROR: message
87.br
88Sets the printer-state-message attribute and adds the specified
89message to the current \fIErrorLog\fR using the "error" log level.
90
91.TP 5
92INFO: message
93.br
94Sets the printer-state-message attribute. If the current \fILogLevel\fR
95is set to "debug2", also adds the specified message to the
96current \fIErrorLog\fR using the "info" log level.
97
98.TP 5
99NOTICE: message
100.br
101Sets the printer-state-message attribute and adds the specified
102message to the current \fIErrorLog\fR using the "notice" log level.
103
104.TP 5
105PAGE: page-number #-copies
106.TP 5
107PAGE: #-pages total
108.br
109Adds an entry to the current \fIPageLog\fR. The first form adds
110#-copies to the job-media-sheets-completed attribute. The second
111form sets the job-media-sheets-completed attribute to #-pages.
112
113.TP 5
114STATE: printer-state-reason [printer-state-reason ...]
115.TP 5
116STATE: + printer-state-reason [printer-state-reason ...]
117.TP 5
118STATE: - printer-state-reason [printer-state-reason ...]
119.br
120Sets, adds, or removes printer-state-reason keywords to the
121current queue. Typically this is used to indicate media, ink, and
122toner conditions on a printer.
123
124.TP 5
125WARNING: message
126.br
127Sets the printer-state-message attribute and adds the specified
128message to the current \fIErrorLog\fR using the "warning" log level.
129
ef416fc2 130.SH ENVIRONMENT VARIABLES
bd7854cb 131The following environment variables are defined by the CUPS
80ca4592 132server when executing the filter:
bd7854cb 133
ef416fc2 134.TP 5
135CHARSET
136.br
bd7854cb 137The default text character set, typically utf-8.
138
ef416fc2 139.TP 5
140CLASS
141.br
142When a job is submitted to a printer class, contains the name of
143the destination printer class. Otherwise this environment
144variable will not be set.
bd7854cb 145
ef416fc2 146.TP 5
147CONTENT_TYPE
148.br
bd7854cb 149The MIME type associated with the file (e.g.
150application/postscript).
151
ef416fc2 152.TP 5
153CUPS_DATADIR
154.br
155The directory where data files can be found.
bd7854cb 156
ef416fc2 157.TP 5
158CUPS_SERVERROOT
159.br
160The root directory of the server.
bd7854cb 161
ef416fc2 162.TP 5
163DEVICE_URI
164.br
80ca4592 165The device-uri associated with the printer.
bd7854cb 166
167.TP 5
168FINAL_CONTENT_TYPE
169.br
170The MIME type associated with the printer (e.g.
171application/vnd.cups-postscript).
172
ef416fc2 173.TP 5
174LANG
175.br
176The default language locale (typically C or en).
bd7854cb 177
ef416fc2 178.TP 5
179PATH
180.br
bd7854cb 181The standard execution path for external programs that may be run by
80ca4592 182the filter.
bd7854cb 183
ef416fc2 184.TP 5
185PPD
186.br
bd7854cb 187The full pathname of the PostScript Printer Description (PPD)
188file for this printer.
189
ef416fc2 190.TP 5
191PRINTER
192.br
bd7854cb 193The name of the printer.
194
ef416fc2 195.TP 5
196RIP_CACHE
197.br
bd7854cb 198The recommended amount of memory to use for Raster Image
199Processors (RIPs).
200
ef416fc2 201.TP 5
202SOFTWARE
203.br
bd7854cb 204The name and version number of the server (typically CUPS/1.2).
205
ef416fc2 206.TP 5
207TZ
208.br
209The timezone of the server.
bd7854cb 210
ef416fc2 211.TP 5
212USER
213.br
80ca4592 214The user executing the filter, typically "lp" or "root"; consult the
bd7854cb 215\fIcupsd.conf(5)\fR file for the current setting.
216
ef416fc2 217.SH COMPATIBILITY
218While the filter interface is compatible with System V interface
219scripts, it will only work with the System V interface script as the
220only filter. Typically the interface script will be provided via the
bd7854cb 221\fIlpadmin(8)\fR command using the \fI-i\fR option.
ef416fc2 222.SH SEE ALSO
bd7854cb 223\fIbackend(1)\fR, \fIcupsd(8)\fR,
224.br
225http://localhost:631/help
ef416fc2 226.SH COPYRIGHT
bd7854cb 227Copyright 1997-2006 by Easy Software Products, All Rights Reserved.
ef416fc2 228.\"
c07d5b2d 229.\" End of "$Id: filter.man 177 2006-06-21 00:20:03Z jlovell $".
ef416fc2 230.\"