1foo2oak-wrapper(1)          General Commands Manual         foo2oak-wrapper(1)
2
3
4
5
6

NAME

8       foo2oak-wrapper - Convert Postscript into an OAKT printer stream
9

SYNOPSIS

11       foo2oak-wrapper [options] [ps-file]
12

DESCRIPTION

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

COMMAND LINE OPTIONS

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 up‐
110              per left corner, in pixels [varies with paper  size].   The  de‐
111              faults  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  di‐
123              mensions,  so that the scale of the image is correct, regardless
124              whether or not the printer has unprintable regions.  This option
125              is  used to move the position of the clipped image back to where
126              it belongs on the page.  The default is to send the amount which
127              was clipped by -u and -l, and should be good in most cases.
128
129              0   don't send any logical clipping amounts
130              1   only send Y clipping amount
131              2   only send X clipping amount
132              3   send both X and Y clipping amounts
133
134       -z model
135              Model is 0 for the HP Color LaserJet 1500, and 1 for the Kyocera
136              KM-1635/KM-2035 copiers.  The default is 0.
137
138   Color Tweaking Options
139       These are the options used to control  the  quality  of  color  output.
140       Color correction is currently a WORK IN PROGRESS.
141
142       -g gsopts
143              Additional   options   to   pass   to   Ghostscript,   such   as
144              -g“-dDITHERPPI=nnn”, etc.  This  option  may  appear  more  than
145              once.
146
147       -G profile.icm
148              Convert  profile.icm  to a Postscript color rendering dictionary
149              (CRD) using icc2ps and adjust the printer colors  by  using  the
150              Postscript setcolorrendering operator.  (WORK IN PROGRESS).
151
152       -G gamma-file.ps
153              Prepend  gamma-file.ps  to the Postscript input to perform color
154              correction using the setcolortransfer Postscript operator.   For
155              example, the file might contain:
156              {0.333 exp} {0.333 exp} {0.333 exp} {0.333 exp} setcolortransfer
157
158       -I intent
159              Select  profile  intent from the ICM file.  0=Perceptual, 1=Col‐
160              orimetric, 2=Saturation, 3=Absolute.  Default is 0 (perceptual).
161
162   Debugging Options
163       These options are used for debugging foo2oak and its wrapper.
164
165       -S plane
166              Output just a single color plane from a color print and print it
167              on the black plane.  The default is to output all color planes.
168
169              1   Cyan
170              2   Magenta
171              3   Yellow
172              4   Black
173
174       -D level
175              Set Debug level [0].
176
177

EXAMPLES

179       Create a monochrome OAKT stream from a Postscript document, examine it,
180       and then print it using a RAW print queue:
181
182              foo2oak-wrapper testpage.ps > testpage.oak
183              oakdecode < testpage.oak
184              lpr -P raw testpage.oak
185
186       Create a color OAKT stream from a Postscript document:
187
188              foo2oak-wrapper -c testpage.ps > testpage.oak
189
190

FILES

192       /usr/bin/foo2oak-wrapper
193

SEE ALSO

195       foo2oak(1), oak(1)
196

AUTHOR

198       Rick Richardson <rick.richardson@comcast.net>
199       http://foo2oak.rkkda.com/
200
201
202
203
204
Impressum