• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2#   MIME conversions file for OpenPrinting CUPS Filters.
3#
4#   Copyright 2007-2011 by Apple Inc.
5#   Copyright 1997-2007 by Easy Software Products.
6#   Copyright 2012-2016 by Till Kamppeter.
7#   Copyright 2017 by Sahil Arora.
8#
9#   These coded instructions, statements, and computer programs are the
10#   property of Apple Inc. and are protected by Federal copyright
11#   law.  Distribution and use rights are outlined in the file "COPYING"
12#   which should have been included with this file.
13#
14
15########################################################################
16#
17# Format of Lines:
18#
19#   source/type destination/type cost filter
20#
21# General Notes:
22#
23#   The "cost" field is used to find the least costly filters to run
24#   when converting a job file to a printable format.
25#
26#   All filters *must* accept the standard command-line arguments
27#   (job-id, user, title, copies, options, [filename or stdin]) to
28#   work with CUPS.
29#
30
31########################################################################
32#
33# PDF filters
34#
35
36# CUPS file conversion rules for PostScript input when we are working with
37# the PDF printing workflow. General PostScript input should be converted to
38# PDF (see cupsfilters-ghostscript.convs as this is done by Ghostscript), so
39# that pdftopdf is doing the page management on PDF data and the
40# renderer/driver part renders PDF. An exception is made for PostScript
41# coming from the Adobe Reader. As this PostScript cannot be converted to PDF
42# if it comes from an encrypted PDF file, we simply override pstopdf and the
43# PDF workflow.
44
45application/vnd.adobe-reader-postscript	application/vnd.cups-postscript	66	pstops
46
47application/pdf		application/vnd.cups-pdf		66	pdftopdf
48application/x-cshell	application/pdf				32	texttopdf
49application/x-csource	application/pdf				32	texttopdf
50application/x-perl	application/pdf				32	texttopdf
51application/x-shell	application/pdf				32	texttopdf
52text/plain		application/pdf				32	texttopdf
53text/html		application/pdf				32	texttopdf
54image/pwg-raster	application/pdf				32	rastertopdf
55image/gif		application/vnd.cups-pdf		65	imagetopdf
56image/png		application/vnd.cups-pdf		65	imagetopdf
57image/jpeg		application/vnd.cups-pdf		65	imagetopdf
58image/tiff		application/vnd.cups-pdf		65	imagetopdf
59image/x-bitmap		application/vnd.cups-pdf		65	imagetopdf
60image/x-photocd		application/vnd.cups-pdf		65	imagetopdf
61image/x-portable-anymap	application/vnd.cups-pdf		65	imagetopdf
62image/x-portable-bitmap	application/vnd.cups-pdf		65	imagetopdf
63image/x-portable-graymap application/vnd.cups-pdf		65	imagetopdf
64image/x-portable-pixmap	application/vnd.cups-pdf		65	imagetopdf
65image/x-sgi-rgb		application/vnd.cups-pdf		65	imagetopdf
66image/x-xbitmap		application/vnd.cups-pdf		65	imagetopdf
67image/x-xpixmap		application/vnd.cups-pdf		65	imagetopdf
68image/x-xwindowdump	application/vnd.cups-pdf		65	imagetopdf
69image/x-sun-raster	application/vnd.cups-pdf		65	imagetopdf
70application/vnd.cups-pdf-banner	application/pdf			32	bannertopdf
71image/urf		application/pdf				0	@APPLE_RASTER_FILTER@
72@QPDF_NO_PCLM@application/vnd.cups-raster application/PCLm			32	rastertopclm
73
74########################################################################
75#
76# PostScript filters
77#
78
79#application/pdf		application/vnd.cups-postscript	66	pdftops
80application/vnd.cups-pdf	application/vnd.cups-postscript	100	pdftops
81#application/postscript		application/vnd.cups-postscript	66	pstops
82
83########################################################################
84#
85# Raster filters...
86#
87
88image/gif			application/vnd.cups-raster	100	imagetoraster
89image/png			application/vnd.cups-raster	100	imagetoraster
90image/jpeg			application/vnd.cups-raster	100	imagetoraster
91image/tiff			application/vnd.cups-raster	100	imagetoraster
92image/x-bitmap			application/vnd.cups-raster	100	imagetoraster
93image/x-photocd			application/vnd.cups-raster	100	imagetoraster
94image/x-portable-anymap		application/vnd.cups-raster	100	imagetoraster
95image/x-portable-bitmap		application/vnd.cups-raster	100	imagetoraster
96image/x-portable-graymap	application/vnd.cups-raster	100	imagetoraster
97image/x-portable-pixmap		application/vnd.cups-raster	100	imagetoraster
98image/x-sgi-rgb			application/vnd.cups-raster	100	imagetoraster
99image/x-xbitmap			application/vnd.cups-raster	100	imagetoraster
100image/x-xpixmap			application/vnd.cups-raster	100	imagetoraster
101image/x-sun-raster		application/vnd.cups-raster	100	imagetoraster
102
103########################################################################
104#
105# Text filters (only for text-only printers)...
106#
107
108application/x-cshell		text/plain			100	-
109application/x-csource		text/plain			100	-
110application/x-perl		text/plain			100	-
111application/x-shell		text/plain			100	-
112text/html			text/plain			100	-
113text/css			text/plain			100	-
114
115