4 # MIME types file for OpenPrinting CUPS Filters.
6 # DO NOT EDIT THIS FILE, AS IT IS OVERWRITTEN WHEN YOU INSTALL NEW
7 # VERSIONS OF OPENPRINTING CUPS FILTERS. Instead, create a "local.types"
8 # file that reflects your local configuration changes.
10 # Copyright 2011 by Till Kamppeter
13 # Distribution and use rights are outlined in the file "LICENSE.txt"
14 # which should have been included with this file.
17 ########################################################################
23 # "rules" can be any combination of:
25 # ( expr ) Parenthesis for expression grouping
27 # , or whitespace Logical OR
29 # match("pattern") Pattern match on filename
30 # extension Pattern match on "*.extension"
31 # ascii(offset,length) True if bytes are valid printable ASCII
32 # (CR, NL, TAB, BS, 32-126)
33 # priority(number) Sets priority of type (0=lowest,
34 # 100=default, 200=highest)
35 # printable(offset,length) True if bytes are printable 8-bit chars
36 # (CR, NL, TAB, BS, 32-126, 128-254)
37 # string(offset,"string") True if bytes are identical to string
38 # istring(offset,"string") True if bytes are identical to
39 # case-insensitive string
40 # char(offset,value) True if byte is identical
41 # short(offset,value) True if 16-bit integer is identical
42 # int(offset,value) True if 32-bit integer is identical
43 # locale("string") True if current locale matches string
44 # contains(offset,range,"string") True if the range contains the string
48 # MIME type names are case-insensitive. Internally they are converted
49 # to lowercase. Multiple occurrences of a type will cause the provided
50 # rules to be appended to the existing definition. If two types use the same
51 # rules to resolve a type and have the same priority, e.g. "doc" extension for
52 # "text/bar" and "text/foo", the returned type will be the first type as
53 # sorted in alphanumerically ascending order without regard to case. Thus,
54 # the "text/bar" type will match the "doc" extension first unless the
55 # "text/foo" type has specified a higher priority.
57 # The "printable" rule differs from the "ascii" rule in that it also
58 # accepts 8-bit characters in the range 128-255.
60 # String constants must be surrounded by "" if they contain whitespace.
61 # To insert binary data into a string, use the <hex> notation.
64 ########################################################################
66 # Application-generated files...
69 # CUPS file detection rule for PostScript which is generated by the Adobe
70 # Reader. We distinguish PostScript from the Adobe reader here so that we
71 # can override pstopdf and the PDF workflow for these PostScript files as the
72 # conversion of them to PDF does not work if the original PDF file was
75 application/vnd.adobe-reader-postscript priority(150) contains(0,4096,"%%Creator: Adobe Acrobat") + \
76 (ai eps ps string(0,%!) string(0,<04>%!) \
77 contains(0,128,<1B>%-12345X) + \
78 (contains(0,4096,"LANGUAGE=POSTSCRIPT") \
79 contains(0,4096,"LANGUAGE = Postscript") \
80 contains(0,4096,"LANGUAGE = PostScript") \
81 contains(0,4096,"LANGUAGE = POSTSCRIPT") \
82 (contains(0,4096,<0a>%!) + \
83 !contains(0,4096,"ENTER LANGUAGE"))))
85 ########################################################################
90 image/x-xbitmap xbm string(0,"#define");
91 image/x-xpixmap xpm string(3,"XPM")
92 image/x-xwindowdump xwd string(4,<00000007>)
93 image/urf urf string(0,UNIRAST<00>)
95 ########################################################################
97 # CUPS-specific types...
100 application/vnd.cups-pdf
101 application/vnd.cups-pdf-banner string(0,'#PDF-BANNER')