1foo2oak(1) General Commands Manual foo2oak(1)
2
3
4
5
6
8 foo2oak - Convert Ghostscript pbmraw, pgmraw or bitcmyk format into an
9 OAKT printer stream
10
12 foo2oak [options] <pbmraw-file >OAKT-file
13
14 foo2oak [options] <pgmraw-file >OAKT-file
15
16 foo2oak [options] <bitcmyk-file >OAKT-file
17
19 foo2oak converts Ghostscript pbmraw or bitcmyk output formats to mono‐
20 chrome or color OAKT streams, for driving the HP Color LaserJet 1500
21 laser printer, Kyocera KM-1636/KM-2035 copiers, and other OAKT-based
22 printers.
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 Force color mode if autodetect doesn't work.
31
32 -d duplex
33 Duplex code to send to printer [1].
34 │ │ │
35 │1 off │ 2 long edge │ 3 short edge
36
37 -g xpixxypix
38 Set page dimensions in pixels [10200x6600].
39
40 -m media
41 Media code to send to printer [1].
42
43 ────────────────────
44 Media Code
45 ────────────────────
46 autoselect 0
47 plain 1
48 preprinted 2
49 letterhead 3
50 transparency 4
51 prepunched 5
52 labels 6
53 bond 7
54 recycled 8
55 color 9
56 cardstock 10
57 envelope 11
58 light 13
59 tough 14
60 vellum 15
61 rough 16
62 thick 19
63 highqual 20
64
65 -p paper
66 Paper code to send to printer [1].
67
68 ┌─────────────────┬─────────────────┐
69 │ 1 letter │ 3 ledger │
70 │ 5 legal │ 6 statement │
71 │ 7 executive │ 8 A3 │
72 │ 9 A4 │ 11 A5 │
73 │ 12 B4 │ 13 B5jis │
74 │ 14 folio │ 19 env9 │
75 │ 20 env10 │ 27 envDL │
76 │ 28 envC5 │ 30 envC4 │
77 │ 37 envMonarch │ 257 A6 │
78 │258 B6 │ 259 B5iso │
79 │260 env6 │ │
80 └─────────────────┴─────────────────┘
81 -n copies
82 Number of copies [1].
83
84 -r xresxyres
85 Set device resolution in pixels/inch [600x600].
86
87 -s source
88 Source (InputSlot) code to send to printer [7].
89 │ │
90 │1 tray1 │ 2 tray2
91 │4 manual │ 7 auto
92
93 -J filename
94 Filename string to send to printer.
95
96 -U username
97 Username string to send to printer.
98
99 Printer Tweaking Options
100 These are the options used to customize the operation of foo2oak for a
101 particular printer.
102
103 -u xoffxyoff
104 Set the offset of the start of the printable region from the
105 upper left corner, in pixels [0x0].
106
107 -l xoffxyoff
108 Set the offset of the end of the printable region from the lower
109 right corner, in pixels [0x0].
110
111 -L mask
112 Send logical clipping amounts implied by -u/-l in the OAKT
113 stream [3].
114
115 0 don't send any logical clipping amounts
116 1 only send Y clipping amount
117 2 only send X clipping amount
118 3 send both X and Y clipping amounts
119
120 -A AllIsBlack: convert C=1,M=1,Y=1 to just K=1. Works with bitcmyk
121 input only.
122
123 -B BlackClears: K=1 forces C,M,Y to 0. Works with bitcmyk input
124 only.
125
126 -M mirror
127 Mirror bytes. Mirror is 0 for Kyocera KM-1635/KM-2035 and 1 for
128 the HP Color LaserJet 1500. The default is 1.
129
130 -z model
131 Model is 0 for the HP Color LaserJet 1500, and 1 for the Kyocera
132 KM-1635/KM-2035 copiers. The default is 0.
133
134 Debugging Options
135 These options are used for debugging foo2oak.
136
137 -S plane
138 Output just a single color plane from a color print and print it
139 on the black plane. The default is to output all color planes.
140
141 1 Cyan
142 2 Magenta
143 3 Yellow
144 4 Black
145
146 -D level
147 Set Debug level [0].
148
149
151 Create a black and white OAKT stream:
152
153 gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE
154 -sPAPERSIZE=letter -r600x600 -sDEVICE=pbmraw
155 -sOutputFile=- - < testpage.ps
156 | foo2oak -r600x600 -g5100x6600 -p1 >testpage.oak
157
158 Create a color OAKT stream:
159
160 gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE
161 -sPAPERSIZE=letter -g5100x6600 -r600x600 -sDEVICE=bitcmyk
162 -sOutputFile=- - < testpage.ps
163 | foo2oak -r600x600 -g5100x6600 -p1 >testpage.oak
164
165
167 /usr/bin/foo2oak
168
170 foo2oak-wrapper(1), oakdecode(1)
171
173 Rick Richardson <rick.richardson@comcast.net>
174 http://foo2oak.rkkda.com/
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205