1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
|
.\"
.\" cupsfilter man page for CUPS.
.\"
.\" Copyright © 2020-2024 by OpenPrinting.
.\" Copyright © 2007-2019 by Apple Inc.
.\"
.\" Licensed under Apache License v2.0. See the file "LICENSE" for more
.\" information.
.\"
.TH cupsfilter 8 "CUPS" "2021-02-28" "OpenPrinting"
.SH NAME
cupsfilter \- convert a file to another format using cups filters (deprecated)
.SH SYNOPSIS
.B cupsfilter
[
.B \-\-list\-filters
] [
.B \-D
] [
.B \-U
.I user
] [
.B \-c
.I config-file
] [
.B \-d
.I printer
] [
.B \-e
] [
.B \-i
.I mime/type
] [
.B \-j
.I job-id[,N]
] [
.B \-m
.I mime/type
] [
.B \-n
.I copies
] [
.B \-o
.I name=value
] [
.B \-p
.I filename.ppd
] [
.B \-t
.I title
] [
.B \-u
]
.I filename
.SH DESCRIPTION
.B cupsfilter
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,
.B cupsfilter
generates a PDF file. The converted file is sent to the standard output.
.SH OPTIONS
.TP 5
.B \-\-list\-filters
Do not actually run the filters, just print the filters used to stdout.
.TP 5
.B \-D
Delete the input file after conversion.
.TP 5
\fB\-U \fIuser\fR
Specifies the username passed to the filters. The default is the name of the current user.
.TP 5
\fB\-c \fIconfig-file\fR
Uses the named cups-files.conf configuration file.
.TP 5
\fB\-d \fIprinter\fR
Uses information from the named printer.
.TP 5
.B \-e
Use every filter from the PPD file.
.TP 5
\fB\-i \fImime/type\fR
Specifies the source file type. The default file type is guessed using the filename and contents of the file.
.TP 5
\fB\-j \fIjob-id[,N]\fR
Converts document N from the specified job. If N is omitted, document 1 is converted.
.TP 5
\fB\-m \fImime/type\fR
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.
.TP 5
\fB\-n \fIcopies\fR
Specifies the number of copies to generate.
.TP 5
\fB\-o \fIname=value\fR
Specifies options to pass to the CUPS filters.
.TP 5
\fB\-p \fIfilename.ppd\fR
Specifies the PPD file to use.
.TP 5
\fB\-t \fItitle\fR
Specifies the document title.
.TP 5
.B \-u
Delete the PPD file after conversion.
.SH EXIT STATUS
.B cupsfilter
returns a non-zero exit status on any error.
.SH ENVIRONMENT
All of the standard
.BR cups (1)
environment variables affect the operation of
.BR cupsfilter .
.SH FILES
.nf
/etc/cups/cups-files.conf
/etc/cups/*.convs
/etc/cups/*.types
/usr/share/cups/mime/*.convs
/usr/share/cups/mime/*.types
.SH NOTES
CUPS printer drivers, filters, and backends are deprecated and will no longer be supported in a future feature release of CUPS.
Printers that do not support IPP can be supported using applications such as
.BR ippeveprinter (1).
.LP
Unlike when printing, filters run using the
.B cupsfilter
command use the current user and security session. This may result in different output or unexpected behavior.
.SH EXAMPLE
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":
.nf
cupsfilter -m application/pdf -d myprinter -j 42 >preview.pdf
.fi
.SH SEE ALSO
.BR cups (1),
.BR cupsd.conf (5),
.BR filter(7),
.BR mime.convs (7),
.BR mime.types (7),
CUPS Online Help (http://localhost:631/help)
.SH COPYRIGHT
Copyright \[co] 2020-2024 by OpenPrinting.
|