26
26
ln -s /usr/lib/cups/filter/imagetops /tmp/cups-$user/bin/filter
27
27
ln -s /usr/lib/cups/filter/imagetoraster /tmp/cups-$user/bin/filter
28
28
ln -s /usr/lib/cups/filter/pdftops /tmp/cups-$user/bin/filter
30
30
ln -s /usr/share/cups/data/psglyphs $root/data
32
32
ln -s /usr/share/cups/fonts /tmp/cups-$user/share
35
+ # cups-filters 1.0.25
35
+ # cups-filters 1.0.38
37
37
+ ln -s /usr/share/cups/mime/cupsfilters.types /tmp/cups-$user/share/mime
38
+ ln -s /usr/share/cups/mime/cupsfilters.convs /tmp/cups-$user/share/mime
38
+ # Use cups-filter's patched 1.0.38 that doesn't make the test-suite fail
39
+ ln -s $root/conf/cupsfilters.convs /tmp/cups-$user/share/mime
40
41
+ ln -s /usr/lib/cups/filter/bannertopdf /tmp/cups-$user/bin/filter
41
42
+ ln -s /usr/lib/cups/filter/commandtoescpx /tmp/cups-$user/bin/filter
42
43
+ ln -s /usr/lib/cups/filter/commandtopclx /tmp/cups-$user/bin/filter
44
+ ln -s /usr/lib/cups/filter/gstopxl /tmp/cups-$user/bin/filter
43
45
+ ln -s /usr/lib/cups/filter/gstoraster /tmp/cups-$user/bin/filter
44
46
+ ln -s /usr/lib/cups/filter/imagetopdf /tmp/cups-$user/bin/filter
45
47
+ ln -s /usr/lib/cups/filter/pdftoijs /tmp/cups-$user/bin/filter
73
75
if test "x$DYLD_LIBRARY_PATH" = x; then
77
+++ b/conf/cupsfilters.convs
82
+# MIME conversions file for OpenPrinting CUPS Filters.
84
+# Copyright 2007-2011 by Apple Inc.
85
+# Copyright 1997-2007 by Easy Software Products.
87
+# These coded instructions, statements, and computer programs are the
88
+# property of Apple Inc. and are protected by Federal copyright
89
+# law. Distribution and use rights are outlined in the file "LICENSE.txt"
90
+# which should have been included with this file. If this file is
91
+# file is missing or damaged, see the license at "http://www.cups.org/".
94
+########################################################################
98
+# source/type destination/type cost filter
102
+# The "cost" field is used to find the least costly filters to run
103
+# when converting a job file to a printable format.
105
+# All filters *must* accept the standard command-line arguments
106
+# (job-id, user, title, copies, options, [filename or stdin]) to
110
+########################################################################
115
+# CUPS file conversion rules for PostScript input when we are working with
116
+# the PDF printing workflow. General PostScript input should be converted to
117
+# PDF, so that pdftopdf is doing the page management on PDF data and the
118
+# renderer/driver part renders PDF. An exception is made for PostScript
119
+# coming from the Adobe Reader. As this PostScript cannot be converted to PDF
120
+# if it comes from an encrypted PDF file, we simply override pstopdf and the
123
+application/postscript application/pdf 0 pstopdf
124
+application/vnd.adobe-reader-postscript application/vnd.cups-postscript 66 pstops
127
+# application/pdf application/vnd.cups-pdf 66 pdftopdf
129
+application/pdf application/vnd.cups-pdf 22 pdftopdf
131
+application/x-cshell application/pdf 32 texttopdf
132
+application/x-csource application/pdf 32 texttopdf
133
+application/x-perl application/pdf 32 texttopdf
134
+application/x-shell application/pdf 32 texttopdf
135
+text/plain application/pdf 32 texttopdf
136
+text/html application/pdf 32 texttopdf
137
+image/gif application/vnd.cups-pdf 65 imagetopdf
138
+image/png application/vnd.cups-pdf 65 imagetopdf
139
+image/jpeg application/vnd.cups-pdf 65 imagetopdf
140
+image/tiff application/vnd.cups-pdf 65 imagetopdf
141
+image/x-bitmap application/vnd.cups-pdf 65 imagetopdf
142
+image/x-photocd application/vnd.cups-pdf 65 imagetopdf
143
+image/x-portable-anymap application/vnd.cups-pdf 65 imagetopdf
144
+image/x-portable-bitmap application/vnd.cups-pdf 65 imagetopdf
145
+image/x-portable-graymap application/vnd.cups-pdf 65 imagetopdf
146
+image/x-portable-pixmap application/vnd.cups-pdf 65 imagetopdf
147
+image/x-sgi-rgb application/vnd.cups-pdf 65 imagetopdf
148
+image/x-xbitmap application/vnd.cups-pdf 65 imagetopdf
149
+image/x-xpixmap application/vnd.cups-pdf 65 imagetopdf
150
+image/x-xwindowdump application/vnd.cups-pdf 65 imagetopdf
151
+image/x-sun-raster application/vnd.cups-pdf 65 imagetopdf
152
+application/vnd.cups-pdf-banner application/pdf 32 bannertopdf
153
+image/urf application/pdf 0 urftopdf
155
+########################################################################
157
+# PostScript filters
160
+#application/pdf application/vnd.cups-postscript 66 pdftops
163
+# application/vnd.cups-pdf application/vnd.cups-postscript 100 pdftops
165
+application/vnd.cups-pdf application/vnd.cups-postscript 22 pdftops
167
+#application/postscript application/vnd.cups-postscript 66 pstops
169
+########################################################################
174
+application/vnd.cups-pdf application/vnd.cups-raster 99 gstoraster
175
+application/vnd.cups-postscript application/vnd.cups-raster 200 gstoraster
176
+application/vnd.cups-pdf application/vnd.cups-raster 100 pdftoraster
177
+image/gif application/vnd.cups-raster 100 imagetoraster
178
+image/png application/vnd.cups-raster 100 imagetoraster
179
+image/jpeg application/vnd.cups-raster 100 imagetoraster
180
+image/tiff application/vnd.cups-raster 100 imagetoraster
181
+image/x-bitmap application/vnd.cups-raster 100 imagetoraster
182
+image/x-photocd application/vnd.cups-raster 100 imagetoraster
183
+image/x-portable-anymap application/vnd.cups-raster 100 imagetoraster
184
+image/x-portable-bitmap application/vnd.cups-raster 100 imagetoraster
185
+image/x-portable-graymap application/vnd.cups-raster 100 imagetoraster
186
+image/x-portable-pixmap application/vnd.cups-raster 100 imagetoraster
187
+image/x-sgi-rgb application/vnd.cups-raster 100 imagetoraster
188
+image/x-xbitmap application/vnd.cups-raster 100 imagetoraster
189
+image/x-xpixmap application/vnd.cups-raster 100 imagetoraster
190
+image/x-sun-raster application/vnd.cups-raster 100 imagetoraster
192
+########################################################################
194
+# Text filters (only for text-only printers)...
197
+application/x-cshell text/plain 100 -
198
+application/x-csource text/plain 100 -
199
+application/x-perl text/plain 100 -
200
+application/x-shell text/plain 100 -
201
+text/html text/plain 100 -
202
+text/css text/plain 100 -