cupsfilter(8)
π cupsfilter(8) β the OpenPrinting glow-up π
okay bestie, so this is a page from the OpenPrinting manual, section 8 (that's the "system admin / daemon" girlies), and it's all about cupsfilter. heads up though: she's deprecated π keep reading, it's giving legacy icon energy.
β¨ NAME β¨
cupsfilter β convert a file to another format using cups filters (deprecated)
ngl the "(deprecated)" in the name is doing a lot of emotional labor here. she still works, she's just on her farewell tour π
πΈ SYNOPSIS πΈ
cupsfilter [ --list-filters ] [ -D ] [ -U user ] [ -c config-file ] [ -d
printer ] [ -e ] [ -i mime/type ] [ -j job-id[,N] ] [ -m mime/type ] [
-n copies ] [ -o name=value ] [ -p filename.ppd ] [ -t title ] [ -u ]
filename
π¦ DESCRIPTION π¦
so basically cupsfilter is a front-end to the CUPS filter subsystem, and she lets you convert a file to a specific format, exactly like you'd printed it through CUPS. same pipeline, same drama, no printer required.
by default, cupsfilter generates a PDF file. and the converted file gets sent straight to standard output β so redirect it or it's just gonna vibe onto your terminal, bestie. π
π OPTIONS π
--list-filtersβ don't actually run the filters, just print the filters used tostdout. it's a vibe check, not a conversion. π-Dβ delete the input file after conversion. bye bye original, hope you meant that π-U userβ specifies the username passed to the filters. the default is the name of the current user.-c config-fileβ uses the namedcups-files.confconfiguration file. custom config, main character move.-d printerβ uses information from the named printer.-eβ use every filter from the PPD file. all of them. no filter left behind β¨-i mime/typeβ specifies the source file type. the default file type is guessed using the filename and contents of the file. she's intuitive like that.-j job-id[,N]β converts document N from the specified job. if N is omitted, document 1 is converted. one-based, periodt.-m mime/typeβ specifies the destination file type. the default file type isapplication/pdf. useprinter/footo convert to the printer format defined by the filters in the PPD file.-n copiesβ specifies the number of copies to generate.-o name=valueβ specifies options to pass to the CUPS filters.-p filename.ppdβ specifies the PPD file to use.-t titleβ specifies the document title.-uβ delete the PPD file after conversion.
π«Ά EXIT STATUS π«Ά
cupsfilter returns a non-zero exit status on any error. so if the number ain't zero, something went sideways β check it, bestie π€
π ENVIRONMENT π
all of the standard cups(1) environment variables affect the operation of cupsfilter. every single one of them. they're all in the group chat.
π FILES π
/etc/cups/cups-files.conf/etc/cups/*.convs/etc/cups/*.types/usr/share/cups/mime/*.convs/usr/share/cups/mime/*.types
β NOTES β
π¨ okay this is the important part, don't scroll past it: CUPS printer drivers, filters, and backends are deprecated and will no longer be supported in a future feature release of CUPS. printers that don't support IPP can be supported using applications such as ippeveprinter(1).
and also β and this one's lowkey spicy β unlike when printing, filters run using the cupsfilter command use the current user and security session. this may result in different output or unexpected behavior. so it's not a 1:1 replica of the printing experience, no cap. π
π₯ 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":
cupsfilter -m application/pdf -d myprinter -j 42 >preview.pdf
ate that. no crumbs. π
π SEE ALSO π
cups(1)cupsd.conf(5)filter(7)mime.convs(7)mime.types(7)- CUPS Online Help (http://localhost:631/help)
π COPYRIGHT π
Copyright Β© 2020-2024 by OpenPrinting.
okay that's the whole page, bestie!! this was cupsfilter(8) from the CUPS manual, dated 2021-02-28 β love her, miss her, she's deprecated but she ATE. mwah ππ¦β¨
π¦ where this page comes from
- alpine 3.22: cups-doc 2.4.18-r0 Β· Apache-2.0
- alpine 3.23: cups-doc 2.4.18-r0 Β· Apache-2.0
- alpine 3.24: cups-doc 2.4.19-r1 Β· Apache-2.0
- centos-stream 10: cups 1:2.4.10-18.el10 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- debian trixie: cups 2.4.10-3+deb13u1 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- debian trixie: cups 2.4.10-3+deb13u2 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- fedora 43: cups 1:2.4.14-2.fc43 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 43: cups 1:2.4.19-3.fc43 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 44: cups 1:2.4.16-7.fc44 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- fedora 44: cups 1:2.4.19-3.fc44 Β· Apache-2.0 WITH LLVM-exception AND BSD-3-Clause AND Zlib AND BSD-2-Clause
- nixpkgs unstable: cups 2.4.19
- opensuse-leap 16.0: cups 2.4.19-160000.2.1 Β· Apache-2.0
- opensuse-leap 16.0: cups 2.4.19-160000.2.1 Β· Apache-2.0
- opensuse-leap 16.0: cups 2.4.19-160000.2.1 Β· Apache-2.0
- opensuse-leap 16.0: cups 2.4.19-160000.2.1 Β· Apache-2.0
- ubuntu questing: cups 2.4.12-0ubuntu3
- ubuntu questing: cups 2.4.12-0ubuntu3.10
- ubuntu resolute: cups 2.4.16-1ubuntu1 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- ubuntu resolute: cups 2.4.16-1ubuntu1.3 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- ubuntu stonking: cups 2.4.16-1ubuntu3 Β· Apache-2.0-with-GPL2-LGPL2-Exception
- Copyright Β© 2020-2024 by OpenPrinting
- Copyright Β© 2007-2019 by Apple Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms