3 <!-- SECTION: Man Pages -->
5 <link rel=
"stylesheet" type=
"text/css" href=
"../cups-printable.css">
6 <title>cupsfilter(
8)
</title>
9 <h1 class=
"title">cupsfilter(
8)
</h1>
10 <h2 class=
"title"><a name=
"NAME">Name
</a></h2>
11 cupsfilter - convert a file to another format using cups filters
12 <h2 class=
"title"><a name=
"SYNOPSIS">Synopsis
</a></h2>
14 [ --list-filters] [ -D ] [ -U
36 <h2 class=
"title"><a name=
"DESCRIPTION">Description
</a></h2>
38 is a front-end to the CUPS filter subsystem which allows you to convert a file to a specific format, just as if you had printed the file through CUPS. By default,
40 generates a PDF file. The converted file is sent to the standard output.
41 <h2 class=
"title"><a name=
"OPTIONS">Options
</a></h2>
42 <p style=
"margin-left: 5.0em; text-indent: -5.0em">--list-filters
44 Do not actually run the filters, just print the filters used to stdout.
45 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-D
47 Delete the input file after conversion.
48 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-U user
50 Specifies the username passed to the filters. The default is the name of the current user.
51 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-c config-file
53 Uses the named cups-files.conf configuration file.
54 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-d printer
56 Uses information from the named printer.
57 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-e
59 Use every filter from the PPD file.
60 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-i mime/type
62 Specifies the source file type. The default file type is guessed using the filename and contents of the file.
63 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-j job-id[,N]
65 Converts document N from the specified job. If N is omitted, document
1 is converted.
66 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-m mime/type
68 Specifies the destination file type. The default file type is application/pdf. Use printer/foo to convert to the printer format defined by the filters in the PPD file.
69 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-n copies
71 Specifies the number of copies to generate.
72 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-o name=value
74 Specifies options to pass to the CUPS filters.
75 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-p filename.ppd
77 Specifies the PPD file to use.
78 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-t title
80 Specifies the document title.
81 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-u
83 Delete the PPD file after conversion.
84 <h2 class=
"title"><a name=
"EXIT_STATUS">Exit Status
</a></h2>
86 returns a non-zero exit status on any error.
87 <h2 class=
"title"><a name=
"ENVIRONMENT">Environment
</a></h2>
90 environment variables affect the operation of
92 <h2 class=
"title"><a name=
"FILES">Files
</a></h2>
93 /etc/cups/cups-files.conf, /etc/cups/*.convs, /etc/cups/*.types, /usr/share/cups/mime/*.convs, /usr/share/cups/mime/*.types
94 <h2 class=
"title"><a name=
"NOTES">Notes
</a></h2>
95 Unlike when printing, filters run using the
97 command use the current user and security session. This may result in different output or unexpected behavior.
98 <h2 class=
"title"><a name=
"EXAMPLE">Example
</a></h2>
99 The following command will generate a PDF preview of job
42 for a printer named
"myprinter" and save it to a file named
"preview.pdf":
101 cupsfilter -m application/pdf -d myprinter -j
42 >preview.pdf
103 <h2 class=
"title"><a name=
"SEE_ALSO">See Also
</a></h2>
104 <b>cups
</b>(
1),
<a href=
"man-cupsd.conf.html?TOPIC=Man+Pages"><b>cupsd.conf
</b>(
5),
</a> <b>filter(
7),
</b> mime.convs
<b>(
7),
</b> mime.types
<b>(
7),
</b>
105 <a href=
"http://localhost:631/help">http://localhost:
631/help
</a>
106 <h2 class=
"title"><a name=
"COPYRIGHT">Copyright
</a></h2>
107 Copyright
© 2007-
2014 by Apple Inc.