cupsfilter - convert a file to another format using cups filters
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,
generates a PDF file. The converted file is sent to the standard output.
Do not actually run the filters, just print the filters used to stdout.
Delete the input file after conversion.
Specifies the username passed to the filters. The default is the name of the current user.
Uses the named cups-files.conf configuration file.
Uses information from the named printer.
Use every filter from the PPD file.
Specifies the source file type. The default file type is guessed using the filename and contents of the file.
Converts document N from the specified job. If N is omitted, document 1 is converted.
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.
Specifies the number of copies to generate.
Specifies options to pass to the CUPS filters.
Specifies the PPD file to use.
Specifies the document title.
Delete the PPD file after conversion.
returns a non-zero exit status on any error.
All of the standard
environment variables affect the operation of
Unlike when printing, filters run using the
command use the current user and security session. This may result in different output or unexpected behavior.
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":
cupsfilter -m application/pdf -d myprinter -j 42 >preview.pdf
CUPS Online Help ( mime.types(7), http://localhost:631/help)
Copyright © 2007-2016 by Apple Inc.