1foo2zjs-wrapper(1) General Commands Manual foo2zjs-wrapper(1)
2
3
4
5
6
8 foo2zjs-wrapper - Convert Postscript into a ZJS printer stream
9
11 foo2zjs-wrapper [options] [ps-file]
12
14 foo2zjs-wrapper is a Foomatic compatible printer wrapper for the
15 foo2zjs printer driver. This script reads a Postscript ps-file or
16 standard input and converts it to Zenographics ZjStream printer format
17 for driving the Minolta/QMS 2300 DL network color laser printer and
18 other Zenographics-based printers.
19
20 This script can be used in a standalone fashion, but is intended to be
21 called from a printer spooler system which uses the Foomatic printer
22 database.
23
24
26 Normal Options
27 These are the options used to select the parameters of a print job that
28 are usually controlled on a per job basis.
29
30 -c Print in color (else monochrome).
31
32 -C colormode
33 Color correction mode [0].
34
35 1 Photos (using m2300w CRDs)
36 2 Photos and text (using m2300w CRDs)
37 3 Graphics and text (using m2300w CRDs)
38 10 ICM color profile (using -G *.icm file)
39
40 -d duplex
41 Duplex code to send to printer [1].
42 │ │ │
43 │1 off │ 2 long edge │ 3 short edge
44
45 -m media
46 Media code to send to printer [1].
47
48 ──────────────────────────────────────────────────────────────
49 2300DL 2200DL HP 1018 HP P1102 HP
50 Media HP 1005 HP 1020 HP P1606 CP1025
51 -z0 -z0 -z1 -z2 -z3
52 ──────────────────────────────────────────────────────────────
53 standard 1 1 1 1 1
54 transparency 2 2 2 2 2
55 envelope 257 na 267 267 267
56 letterhead 259 na 513 513 513
57 bond na na 260 260 260
58 thick 261 4 261 na na
59 postcard 262 na na na na
60 rough na na 263 263 263
61 heavy na na 262 262 262
62 labels 263 3 263 265 265
63 vellum na na 273 273 273
64 medium na na na 282 282
65 extraheavy na na na 283 283
66
67 color na na 512 512 512
68 light na na 258 258 258
69 preprinted na na 514 514 514
70 prepunched na na 515 515 515
71 recycled na na 516 516 516
72
73 -p paper
74 Paper size code to send to printer [1].
75
76 ──────────────────────────────────────────────────────────────────
77 MC 2300DL HP 1018 HP P1102 HP
78 Paper HP 1005 HP 1020 HP P1606 CP1025
79 -z0 -z1 -z2 -z3
80 ──────────────────────────────────────────────────────────────────
81 letter 1 1 1 1
82 legal 5 5 5 5
83 executive 7 7 7 7
84 A4 9 9 9 9
85 A5 11 11 11 11
86 B5jis 13 13 13 13
87 env #10 20 20 20 20
88 env DL 27 27 27 27
89 env CL 28 28 28 28
90 env B5 34 34 34 34
91 env Monarch 37 37 37 37
92 postcard (japan) na 260 43 43
93 B5iso na 259 na na
94 A6 na 262 70 70
95 double postcard rotated na 261 82 82
96 16k 197x273 na 257 257 257
97 fanfold german legal na 258 258 258
98 16k 184x260 na na 263 263
99 16k 195x270 na na 264 264
100 photo 4x6 na na na 268
101 photo 5x8 na na na 269
102 photo 10x15 na na na 270
103
104 -n copies
105 Number of copies [1].
106
107 -r xresxyres
108 Set device resolution in pixels/inch [1200x600].
109
110 -s source
111 Source (Input Slot) code to send to printer [7].
112 │ │
113 │1 upper │ 4 manual
114 │2 lower │ 7 auto
115
116 -t Draft mode. Every other pixel is white.
117
118 -T density
119 Print density (1-5). The default is 3 (medium).
120
121 -2 -3 -4 -5 -6 -8 -9 -10 -12 -14 -15 -16 -18
122 Print in N-up. Requires the psutils package.
123
124 -o orient
125 Orientation used for N-up.
126
127 Portrait -op (normal)
128 Landscape -ol (rotated 90 degrees anticlockwise)
129 Seascape -os (rotated 90 degrees clockwise)
130
131 Printer Tweaking Options
132 These are the options used to customize the operation of foo2zjs for a
133 particular printer.
134
135 -u xoffxyoff
136 Set the offset of the start of the printable region from the up‐
137 per left corner, in pixels [varies with paper size]. The de‐
138 faults should work on the 2200DL and 2300DL, and have not been
139 tested on any other printers.
140
141 -l xoffxyoff
142 Set the offset of the end of the printable region from the lower
143 right corner, in pixels [varies with paper size]. The defaults
144 should work on the 2200DL and 2300DL, and have not been tested
145 on any other printers.
146
147 -L mask
148 Send the logical clipping values from -u/-l in the ZjStream.
149 foo2zjs-wrapper always runs Ghostscript with the ideal page di‐
150 mensions, so that the scale of the image is correct, regardless
151 whether or not the printer has unprintable regions. This option
152 is used to move the position of the clipped image back to where
153 it belongs on the page. The default is to send the amount which
154 was clipped by -u and -l, and should be good in most cases.
155
156 0 don't send any logical clipping amounts
157 1 only send Y clipping amount
158 2 only send X clipping amount
159 3 send both X and Y clipping amounts
160
161 -P Do not send START_PLANE codes on monochrome output. May be
162 needed by some monochrome-only printers, such as the HP LaserJet
163 1000.
164
165 -X padlen
166 Add extra zero padding to the end of BID segments. The default
167 is 16 bytes. Padding 16 bytes of zeroes is needed for older
168 ZjStream printers, such as the Minolta 2200DL and HP LaserJet
169 1000, and seems harmless to newer ones, such as the Minolta
170 2300DL. So the default should be good for all cases.
171
172 -z model
173 Model. Default is 0.
174
175 0 KM 2300DL / HP 1000 / HP 1005
176 1 HP 1018 / HP 1020 / HP 1022
177 2 HP Pro P1102 / P1566 / P1606dn
178 3 HP Pro CP1025
179
180 Color Tweaking Options
181 These are the options used to control the quality of color output.
182 Color correction is currently a WORK IN PROGRESS.
183
184 -g gsopts
185 Additional options to pass to Ghostscript, such as
186 -g“-dDITHERPPI=nnn”, etc. This option may appear more than
187 once.
188
189 -G profile.icm
190 Convert profile.icm to a Postscript color rendering dictionary
191 (CRD) using icc2ps and adjust the printer colors by using the
192 Postscript setcolorrendering operator. (WORK IN PROGRESS).
193
194 -G gamma-file.ps
195 Prepend gamma-file.ps to the Postscript input to perform color
196 correction using the setcolortransfer Postscript operator. For
197 example, the file might contain:
198 {0.333 exp} {0.333 exp} {0.333 exp} {0.333 exp} setcolortransfer
199
200 -I intent
201 Select profile intent from the ICM file. 0=Perceptual, 1=Col‐
202 orimetric, 2=Saturation, 3=Absolute. Default is 0 (perceptual).
203
204 Debugging Options
205 These options are used for debugging foo2zjs and its wrapper.
206
207 -S plane
208 Output just a single color plane from a color print and print it
209 on the black plane. The default is to output all color planes.
210
211 1 Cyan
212 2 Magenta
213 3 Yellow
214 4 Black
215
216 -D level
217 Set Debug level [0].
218
219
221 Create a monochrome ZjStream from a Postscript document, examine it,
222 and then print it using a RAW print queue:
223
224 foo2zjs-wrapper testpage.ps > testpage.zm
225 zjsdecode < testpage.zm
226 lpr -P raw testpage.zm
227
228 Create a color ZjStream stream from a Postscript document:
229
230 foo2zjs-wrapper -c testpage.ps > testpage.zc
231
232
234 /usr/bin/foo2zjs-wrapper
235
237 foo2zjs(1), zjsdecode(1)
238
240 Rick Richardson <rick.richardson@comcast.net>
241 http://foo2zjs.rkkda.com/
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271