]> git.ipfire.org Git - thirdparty/cups.git/blame - man/filter.man
Load cups into easysw/current.
[thirdparty/cups.git] / man / filter.man
CommitLineData
ef416fc2 1.\"
2.\" "$Id: filter.man 4493 2005-02-18 02:09:53Z mike $"
3.\"
4.\" filter man page for the Common UNIX Printing System (CUPS).
5.\"
6.\" Copyright 1997-2005 by Easy Software Products.
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.\"
24.TH filter 1 "Common UNIX Printing System" "22 June 2000" "Easy Software Products"
25.SH NAME
26filter \- cups file conversion filter interfaces
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
38Filters must be capable of reading from a filename on the command-line
39or from the standard input, copying the standard input to a temporary
40file as required by the file format. All output must be sent to the
41standard output.
42.LP
43The command name (argv[0]) is set to the name of the destination printer.
44.SH ENVIRONMENT VARIABLES
45The following environment variables are defined by the CUPS server when
46executing each filter:
47.TP 5
48CHARSET
49.br
50The default text character set (typically us-ascii or iso-8859-1).
51.TP 5
52CLASS
53.br
54When a job is submitted to a printer class, contains the name of
55the destination printer class. Otherwise this environment
56variable will not be set.
57.TP 5
58CONTENT_TYPE
59.br
60The MIME type associated with the file (e.g. application/postscript).
61.TP 5
62CUPS_DATADIR
63.br
64The directory where data files can be found.
65.TP 5
66CUPS_SERVERROOT
67.br
68The root directory of the server.
69.TP 5
70DEVICE_URI
71.br
72The device-uri associated with the printer.
73.TP 5
74LANG
75.br
76The default language locale (typically C or en).
77.TP 5
78PATH
79.br
80The standard execution path for external programs that may be run by the filter.
81.TP 5
82PPD
83.br
84The full pathname of the PostScript Printer Description (PPD) file for
85this printer.
86.TP 5
87PRINTER
88.br
89The name of the printer; this is provided for shell scripts which may not be
90able to get the passed argv[0] string.
91.TP 5
92RIP_CACHE
93.br
94The recommended amount of memory to use for Raster Image Processors (RIPs).
95.TP 5
96SOFTWARE
97.br
98The name and version number of the server (typically CUPS/1.1).
99.TP 5
100TZ
101.br
102The timezone of the server.
103.TP 5
104USER
105.br
106The user executing the filter, typically lp; consult the cupsd.conf file for
107the current setting.
108.SH COMPATIBILITY
109While the filter interface is compatible with System V interface
110scripts, it will only work with the System V interface script as the
111only filter. Typically the interface script will be provided via the
112\fBlpadmin(8)\fR command using the \fI-i\fR option.
113.SH SEE ALSO
114backend(1), cupsd(8),
115CUPS Interface Design Description,
116CUPS Software Administrators Manual,
117CUPS Software Programmers Manual,
118http://localhost:631/documentation.html
119.SH COPYRIGHT
120Copyright 1993-2005 by Easy Software Products, All Rights Reserved.
121.\"
122.\" End of "$Id: filter.man 4493 2005-02-18 02:09:53Z mike $".
123.\"