1foo2qpdl-wrapper(1) General Commands Manual foo2qpdl-wrapper(1)
2
3
4
5
6
8 foo2qpdl-wrapper - Convert Postscript into a QPDL printer stream
9
11 foo2qpdl-wrapper [options] [ps-file]
12
14 foo2qpdl-wrapper is a Foomatic compatible printer wrapper for the
15 foo2qpdl printer driver. This script reads a Postscript ps-file or
16 standard input and converts it to Samsung/Xerox QPDL printer format for
17 driving the Samsung CLP-300, CLX-2160, CLX-3160, CLP-315, CLX-3175,
18 CLP-600, CLP-610, CLP-620, CLP-360, CLP-365, and Xerox Phaser 6110 QPDL
19 printers.
20
21 This script can be used in a standalone fashion, but is intended to be
22 called from a printer spooler system which uses the Foomatic printer
23 database.
24
25
27 Normal Options
28 These are the options used to select the parameters of a print job that
29 are usually controlled on a per job basis.
30
31 -c Print in color (else monochrome).
32
33 -C colormode
34 Color correction mode [0].
35
36 1 CRD
37 10 ICM color profile (using -G *.icm file)
38
39 -d duplex
40 Duplex code to send to printer [1].
41 │ │ │
42 │1 off │ 2 long edge │ 3 short edge
43
44 -m media
45 Media code to send to printer [0].
46
47 ────────────────────────
48 Media QPDL
49 ────────────────────────
50 plain 0
51 thick 1
52 thin 2
53 bond 3
54 color 4
55 card 5
56 labels 6
57 envelope 7
58 preprinted 8
59 cotton 9
60 recycled 10
61 transparency 11
62 archive 12
63
64 -p paper
65 Paper size code to send to printer [0].
66
67 ┌──────────────┬──────────────────┐
68 │ 0 letter │ 1 legal │
69 │ 2 A4 │ 3 executive │
70 │ 6 env #10 │ 7 env Monarch │
71 │ 8 env C5 │ 9 env DL │
72 │11 B5jis │ 12 B5iso │
73 │16 A5 │ 17 A6 │
74 │23 env C6 │ 24 folio │
75 │25 env 6.75 │ 26 env #9 │
76 │28 oficio │ │
77 └──────────────┴──────────────────┘
78 -n copies
79 Number of copies [1].
80
81 -r xresxyres
82 Set device resolution in pixels/inch [1200x600].
83
84 -s source
85 Source (Input Slot) code to send to printer [255].
86 │ │
87 │1 auto │ 2 manual
88 │3 multi │ 4 tray1
89
90 -t Draft mode. Every other pixel is white.
91
92 -2 -3 -4 -5 -6 -8 -9 -10 -12 -14 -15 -16 -18
93 Print in N-up. Requires the psutils package.
94
95 -o orient
96 Orientation used for N-up.
97
98 Portrait -op (normal)
99 Landscape -ol (rotated 90 degrees anticlockwise)
100 Seascape -os (rotated 90 degrees clockwise)
101
102 Printer Tweaking Options
103 These are the options used to customize the operation of foo2qpdl for a
104 particular printer.
105
106 -u xoffxyoff
107 Set the offset of the start of the printable region from the
108 upper left corner, in pixels [varies with paper size].
109
110 -l xoffxyoff
111 Set the offset of the end of the printable region from the lower
112 right corner, in pixels [varies with paper size].
113
114 -L mask
115 Send the logical clipping values from -u/-l in the QPDL stream.
116 foo2qpdl-wrapper always runs Ghostscript with the ideal page
117 dimensions, so that the scale of the image is correct, regard‐
118 less whether or not the printer has unprintable regions. This
119 option is used to move the position of the clipped image back to
120 where it belongs on the page. The default is to send the amount
121 which was clipped by -u and -l, and should be good in most
122 cases.
123
124 0 don't send any logical clipping amounts
125 1 only send Y clipping amount
126 2 only send X clipping amount
127 3 send both X and Y clipping amounts
128
129 -z model
130 Printer model. Model 0 is the default.
131
132
133 model Description
134 0 CLP-300, CLX-2160, CLX-3160
135 1 CLP-600
136 2 CLP-310, CLP-315, CLP-610, CLX-3175
137 3 CLP-620, CLP-360, CLP-365
138
139 Color Tweaking Options
140 These are the options used to control the quality of color output.
141 Color correction is currently a WORK IN PROGRESS.
142
143 -a parm=val
144 Color Adjust. parm is b, c, s, cr, mg, yb for brightness, con‐
145 trast, saturation, cyan-red balance, magenta-green balance, and
146 yellow-blue balance. val is 0 to 100. Multiple options are
147 allowed. The default is "-ab=50 -ac=50 -as=50 -acr=50 -amg=50
148 -ayb=50". This only works when the -z3 (e.g. CLP-365) model is
149 set!
150
151 -g gsopts
152 Additional options to pass to Ghostscript, such as
153 -g“-dDITHERPPI=nnn”, etc. This option may appear more than
154 once.
155
156 -G profile.icm
157 Convert profile.icm to a Postscript color rendering dictionary
158 (CRD) using icc2ps and adjust the printer colors by using the
159 Postscript setcolorrendering operator. (WORK IN PROGRESS).
160
161 -G gamma-file.ps
162 Prepend gamma-file.ps to the Postscript input to perform color
163 correction using the setcolortransfer Postscript operator. For
164 example, the file might contain:
165 {0.333 exp} {0.333 exp} {0.333 exp} {0.333 exp} setcolortransfer
166
167 -I intent
168 Select profile intent from the ICM file. 0=Perceptual, 1=Col‐
169 orimetric, 2=Saturation, 3=Absolute. Default is 0 (perceptual).
170
171 Debugging Options
172 These options are used for debugging foo2qpdl and its wrapper.
173
174 -S plane
175 Output just a single color plane from a color print and print it
176 on the black plane. The default is to output all color planes.
177
178 1 Cyan
179 2 Magenta
180 3 Yellow
181 4 Black
182
183 -D level
184 Set Debug level [0].
185
186
188 Create a monochrome QPDL stream from a Postscript document, examine it,
189 and then print it using a RAW print queue:
190
191 foo2qpdl-wrapper testpage.ps > testpage.zm
192 qpdldecode < testpage.zm
193 lpr -P raw testpage.zm
194
195 Create a color QPDL stream from a Postscript document:
196
197 foo2qpdl-wrapper -c testpage.ps > testpage.zc
198
199
201 /usr/bin/foo2qpdl-wrapper
202
204 foo2qpdl(1), qpdldecode(1)
205
207 Rick Richardson <rick.richardson@comcast.net>
208 http://foo2qpdl.rkkda.com/
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264