1foo2oak-wrapper(1) General Commands Manual foo2oak-wrapper(1)
2
3
4
5
6
8 foo2oak-wrapper - Convert Postscript into an OAKT printer stream
9
11 foo2oak-wrapper [options] [ps-file]
12
14 foo2oak-wrapper is a Foomatic compatible printer wrapper for the
15 foo2oak printer driver. This script reads a Postscript ps-file or
16 standard input and converts it to Oak Technology OAKT printer format
17 for driving the HP Color LaserJet 1500 laser printer, Kyocera
18 KM-1636/KM-2035 copiers, and other OAKT-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 -b bits
31 Number of bits per plane (1 or 2) [1].
32
33 -c Print in color (else monochrome).
34
35 -d duplex
36 Duplex code to send to printer [1].
37 │ │ │
38 │1 off │ 2 long edge │ 3 short edge
39
40 -m media
41 Media code to send to printer [1].
42
43 ─────────────────────────────────────
44 Media HP CLJ 1500 KM-1635
45 -z0 -z1
46 ─────────────────────────────────────
47 autoselect 0 0
48 plain 1 1
49 preprinted 2 2
50 letterhead 3 3
51 transparency 4 4
52 prepunched 5 5
53 labels 6 6
54 bond 7 7
55 recycled 8 8
56 color 9 9
57 cardstock 10 10
58 envelope 11 11
59 light 13 na
60 tough 14 na
61 vellum na 15
62 rough na 16
63 thick na 19
64 highqual na 20
65
66 -p paper
67 Paper size code to send to printer [1].
68
69 ┌─────────────────┬─────────────────┐
70 │ 1 letter │ 3 ledger │
71 │ 5 legal │ 6 statement │
72 │ 7 executive │ 8 A3 │
73 │ 9 A4 │ 11 A5 │
74 │ 12 B4 │ 13 B5jis │
75 │ 14 folio │ 19 env9 │
76 │ 20 env10 │ 27 envDL │
77 │ 28 envC5 │ 30 envC4 │
78 │ 37 envMonarch │ 257 A6 │
79 │258 B6 │ 259 B5iso │
80 │260 env6 │ │
81 └─────────────────┴─────────────────┘
82 -n copies
83 Number of copies [1].
84
85 -r xresxyres
86 Set device resolution in pixels/inch [600x600].
87
88 -s source
89 Source (Input Slot) code to send to printer [7].
90 │ │
91 │1 tray1 │ 2 tray2
92 │4 manual │ 7 auto
93
94 -2 -3 -4 -5 -6 -8 -9 -10 -12 -14 -15 -16 -18
95 Print in N-up. Requires the psutils package.
96
97 -o orient
98 Orientation used for N-up.
99
100 Portrait -op (normal)
101 Landscape -ol (rotated 90 degrees anticlockwise)
102 Seascape -os (rotated 90 degrees clockwise)
103
104 Printer Tweaking Options
105 These are the options used to customize the operation of foo2oak for a
106 particular printer.
107
108 -u xoffxyoff
109 Set the offset of the start of the printable region from the
110 upper left corner, in pixels [varies with paper size]. The
111 defaults should work on the 2200DL and 2300DL, and have not been
112 tested on any other printers.
113
114 -l xoffxyoff
115 Set the offset of the end of the printable region from the lower
116 right corner, in pixels [varies with paper size]. The defaults
117 should work on the 2200DL and 2300DL, and have not been tested
118 on any other printers.
119
120 -L mask
121 Send the logical clipping values from -u/-l in the OAKT stream.
122 foo2oak-wrapper always runs Ghostscript with the ideal page
123 dimensions, so that the scale of the image is correct, regard‐
124 less whether or not the printer has unprintable regions. This
125 option is used to move the position of the clipped image back to
126 where it belongs on the page. The default is to send the amount
127 which was clipped by -u and -l, and should be good in most
128 cases.
129
130 0 don't send any logical clipping amounts
131 1 only send Y clipping amount
132 2 only send X clipping amount
133 3 send both X and Y clipping amounts
134
135 -z model
136 Model is 0 for the HP Color LaserJet 1500, and 1 for the Kyocera
137 KM-1635/KM-2035 copiers. The default is 0.
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 -g gsopts
144 Additional options to pass to Ghostscript, such as
145 -g“-dDITHERPPI=nnn”, etc. This option may appear more than
146 once.
147
148 -G profile.icm
149 Convert profile.icm to a Postscript color rendering dictionary
150 (CRD) using icc2ps and adjust the printer colors by using the
151 Postscript setcolorrendering operator. (WORK IN PROGRESS).
152
153 -G gamma-file.ps
154 Prepend gamma-file.ps to the Postscript input to perform color
155 correction using the setcolortransfer Postscript operator. For
156 example, the file might contain:
157 {0.333 exp} {0.333 exp} {0.333 exp} {0.333 exp} setcolortransfer
158
159 -I intent
160 Select profile intent from the ICM file. 0=Perceptual, 1=Col‐
161 orimetric, 2=Saturation, 3=Absolute. Default is 0 (perceptual).
162
163 Debugging Options
164 These options are used for debugging foo2oak and its wrapper.
165
166 -S plane
167 Output just a single color plane from a color print and print it
168 on the black plane. The default is to output all color planes.
169
170 1 Cyan
171 2 Magenta
172 3 Yellow
173 4 Black
174
175 -D level
176 Set Debug level [0].
177
178
180 Create a monochrome OAKT stream from a Postscript document, examine it,
181 and then print it using a RAW print queue:
182
183 foo2oak-wrapper testpage.ps > testpage.oak
184 oakdecode < testpage.oak
185 lpr -P raw testpage.oak
186
187 Create a color OAKT stream from a Postscript document:
188
189 foo2oak-wrapper -c testpage.ps > testpage.oak
190
191
193 /usr/bin/foo2oak-wrapper
194
196 foo2oak(1), oak(1)
197
199 Rick Richardson <rick.richardson@comcast.net>
200 http://foo2oak.rkkda.com/
201
202
203
204
205
206