]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
Add cupsfilters-individual.convs conversion rules for conventional filters
authorTill Kamppeter <till.kamppeter@gmail.com>
Sun, 14 Nov 2021 16:40:26 +0000 (17:40 +0100)
committerTill Kamppeter <till.kamppeter@gmail.com>
Sun, 14 Nov 2021 16:40:26 +0000 (17:40 +0100)
mime/cupsfilters-individual.convs [new file with mode: 0644]

diff --git a/mime/cupsfilters-individual.convs b/mime/cupsfilters-individual.convs
new file mode 100644 (file)
index 0000000..faed815
--- /dev/null
@@ -0,0 +1,104 @@
+#
+#   MIME conversions file for OpenPrinting CUPS Filters.
+#
+#   Copyright 2007-2011 by Apple Inc.
+#   Copyright 1997-2007 by Easy Software Products.
+#   Copyright 2012-2016 by Till Kamppeter.
+#   Copyright 2017 by Sahil Arora.
+#
+#   These coded instructions, statements, and computer programs are the
+#   property of Apple Inc. and are protected by Federal copyright
+#   law.  Distribution and use rights are outlined in the file "COPYING"
+#   which should have been included with this file.
+#
+
+########################################################################
+#
+# Format of Lines:
+#
+#   source/type destination/type cost filter
+#
+# General Notes:
+#
+#   The "cost" field is used to find the least costly filters to run
+#   when converting a job file to a printable format.
+#
+#   All filters *must* accept the standard command-line arguments
+#   (job-id, user, title, copies, options, [filename or stdin]) to
+#   work with CUPS.
+#
+
+########################################################################
+#
+# Conversion rules to be used when the filter functions are used as
+# individual, classic CUPS filters. Filter chains are generated by
+# CUPS
+#
+
+########################################################################
+#
+# PDF filters
+#
+
+application/pdf                application/vnd.cups-pdf                66      pdftopdf
+text/plain             application/pdf                         32      texttopdf
+image/pwg-raster       application/pdf                         32      rastertopdf
+image/gif              application/vnd.cups-pdf                65      imagetopdf
+image/png              application/vnd.cups-pdf                65      imagetopdf
+image/jpeg             application/vnd.cups-pdf                65      imagetopdf
+image/tiff             application/vnd.cups-pdf                65      imagetopdf
+image/x-bitmap         application/vnd.cups-pdf                65      imagetopdf
+image/x-photocd                application/vnd.cups-pdf                65      imagetopdf
+image/x-portable-anymap        application/vnd.cups-pdf                65      imagetopdf
+image/x-portable-bitmap        application/vnd.cups-pdf                65      imagetopdf
+image/x-portable-graymap application/vnd.cups-pdf              65      imagetopdf
+image/x-portable-pixmap        application/vnd.cups-pdf                65      imagetopdf
+image/x-sgi-rgb                application/vnd.cups-pdf                65      imagetopdf
+image/x-xbitmap                application/vnd.cups-pdf                65      imagetopdf
+image/x-xpixmap                application/vnd.cups-pdf                65      imagetopdf
+image/x-xwindowdump    application/vnd.cups-pdf                65      imagetopdf
+image/x-sun-raster     application/vnd.cups-pdf                65      imagetopdf
+application/vnd.cups-pdf-banner        application/pdf                 32      bannertopdf
+image/urf              application/pdf                         0       rastertopdf
+application/vnd.cups-raster application/PCLm                   32      rastertopclm
+
+########################################################################
+#
+# PostScript filters
+#
+
+#application/pdf               application/vnd.cups-postscript 66      pdftops
+application/vnd.cups-pdf       application/vnd.cups-postscript 100     pdftops
+#application/postscript                application/vnd.cups-postscript 66      pstops
+
+# CUPS file conversion rules for PostScript input when we are working with
+# the PDF printing workflow: General PostScript input should be converted to
+# PDF (see cupsfilters-ghostscript.convs as this is done by Ghostscript), so
+# that pdftopdf is doing the page management on PDF data and the
+# renderer/driver part renders PDF. An exception is made for PostScript
+# coming from the Adobe Reader. As this PostScript cannot be converted to PDF
+# if it comes from an encrypted PDF file, we simply override pstopdf and the
+# PDF workflow.
+
+application/vnd.adobe-reader-postscript        application/vnd.cups-postscript 66      pstops
+
+########################################################################
+#
+# Raster filters...
+#
+
+application/PCLm               application/vnd.cups-raster     32      pclmtoraster
+image/gif                      application/vnd.cups-raster     100     imagetoraster
+image/png                      application/vnd.cups-raster     100     imagetoraster
+image/jpeg                     application/vnd.cups-raster     100     imagetoraster
+image/tiff                     application/vnd.cups-raster     100     imagetoraster
+image/x-bitmap                 application/vnd.cups-raster     100     imagetoraster
+image/x-photocd                        application/vnd.cups-raster     100     imagetoraster
+image/x-portable-anymap                application/vnd.cups-raster     100     imagetoraster
+image/x-portable-bitmap                application/vnd.cups-raster     100     imagetoraster
+image/x-portable-graymap       application/vnd.cups-raster     100     imagetoraster
+image/x-portable-pixmap                application/vnd.cups-raster     100     imagetoraster
+image/x-sgi-rgb                        application/vnd.cups-raster     100     imagetoraster
+image/x-xbitmap                        application/vnd.cups-raster     100     imagetoraster
+image/x-xpixmap                        application/vnd.cups-raster     100     imagetoraster
+image/x-sun-raster             application/vnd.cups-raster     100     imagetoraster