2 .\" cupsfilter man page for CUPS.
4 .\" Copyright 2007-2014 by Apple Inc.
6 .\" Licensed under Apache License v2.0. See the file "LICENSE" for more information.
8 .TH cupsfilter 8 "CUPS" "11 June 2014" "Apple Inc."
10 cupsfilter \- convert a file to another format using cups filters
55 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,
57 generates a PDF file. The converted file is sent to the standard output.
61 Do not actually run the filters, just print the filters used to stdout.
64 Delete the input file after conversion.
67 Specifies the username passed to the filters. The default is the name of the current user.
69 \fB\-c \fIconfig-file\fR
70 Uses the named cups-files.conf configuration file.
73 Uses information from the named printer.
76 Use every filter from the PPD file.
78 \fB\-i \fImime/type\fR
79 Specifies the source file type. The default file type is guessed using the filename and contents of the file.
81 \fB\-j \fIjob-id[,N]\fR
82 Converts document N from the specified job. If N is omitted, document 1 is converted.
84 \fB\-m \fImime/type\fR
85 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.
88 Specifies the number of copies to generate.
90 \fB\-o \fIname=value\fR
91 Specifies options to pass to the CUPS filters.
93 \fB\-p \fIfilename.ppd\fR
94 Specifies the PPD file to use.
97 Specifies the document title.
100 Delete the PPD file after conversion.
103 returns a non-zero exit status on any error.
107 environment variables affect the operation of
111 /etc/cups/cups-files.conf
114 /usr/share/cups/mime/*.convs
115 /usr/share/cups/mime/*.types
117 Unlike when printing, filters run using the
119 command use the current user and security session. This may result in different output or unexpected behavior.
121 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":
124 cupsfilter -m application/pdf -d myprinter -j 42 >preview.pdf
132 CUPS Online Help (http://localhost:631/help)
134 Copyright \[co] 2007-2018 by Apple Inc.