4 .\" cupsfilter man page for CUPS.
6 .\" Copyright 2007-2014 by Apple Inc.
8 .\" These coded instructions, statements, and computer programs are the
9 .\" property of Apple Inc. and are protected by Federal copyright
10 .\" law. Distribution and use rights are outlined in the file "LICENSE.txt"
11 .\" which should have been included with this file. If this file is
12 .\" file is missing or damaged, see the license at "http://www.cups.org/".
14 .TH cupsfilter 8 "CUPS" "11 June 2014" "Apple Inc."
16 cupsfilter \- convert a file to another format using cups filters
61 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,
63 generates a PDF file. The converted file is sent to the standard output.
67 Do not actually run the filters, just print the filters used to stdout.
70 Delete the input file after conversion.
73 Specifies the username passed to the filters. The default is the name of the current user.
75 \fB\-c \fIconfig-file\fR
76 Uses the named cups-files.conf configuration file.
79 Uses information from the named printer.
82 Use every filter from the PPD file.
84 \fB\-i \fImime/type\fR
85 Specifies the source file type. The default file type is guessed using the filename and contents of the file.
87 \fB\-j \fIjob-id[,N]\fR
88 Converts document N from the specified job. If N is omitted, document 1 is converted.
90 \fB\-m \fImime/type\fR
91 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.
94 Specifies the number of copies to generate.
96 \fB\-o \fIname=value\fR
97 Specifies options to pass to the CUPS filters.
99 \fB\-p \fIfilename.ppd\fR
100 Specifies the PPD file to use.
103 Specifies the document title.
106 Delete the PPD file after conversion.
109 returns a non-zero exit status on any error.
113 environment variables affect the operation of
117 /etc/cups/cups-files.conf
120 /usr/share/cups/mime/*.convs
121 /usr/share/cups/mime/*.types
123 Unlike when printing, filters run using the
125 command use the current user and security session. This may result in different output or unexpected behavior.
127 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":
130 cupsfilter -m application/pdf -d myprinter -j 42 >preview.pdf
138 CUPS Online Help (http://localhost:631/help)
140 Copyright \[co] 2007-2014 by Apple Inc.