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

NAME

8       foo2hbpl2-wrapper - Convert Postscript into a ZJS printer stream
9

SYNOPSIS

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

DESCRIPTION

14       foo2hbpl2-wrapper  is  a  Foomatic  compatible  printer wrapper for the
15       foo2hbpl2 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 Dell 1355, Dell C1765, Epson AcuLaser M1400, Epson Acu‐
18       Laser  CX17NF,  Fuji Xerox DocuPrint CM205, Fuji Xerox DocuPrint CM215,
19       Fuji Xerox DocuPrint P205, Xerox Phaser 3010, Xerox Phaser 3040,  Xerox
20       WorkCentre 3045 MFP, and Xerox WorkCentre 6015 MFP printers.
21
22       This  script can be used in a standalone fashion, but is intended to be
23       called from a printer spooler system which uses  the  Foomatic  printer
24       database.
25
26

COMMAND LINE OPTIONS

28   Normal Options
29       These are the options used to select the parameters of a print job that
30       are usually controlled on a per job basis.
31
32       -c     Print in color (else monochrome).
33
34       -C colormode
35              Color correction mode [0].
36
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 [1].
46
47              ─────────────────
48              Media       HBPL
49              ─────────────────
50              plain          1
51              bond           2
52              lwcard         3
53              lwgcard        4
54              labels         5
55              envelope       6
56              recycled       7
57              plain2         8
58              bond2          9
59              lwcard2       10
60              lwgcard2      11
61              recycled2     12
62
63       -p paper
64              Paper size code to send to printer [1].
65
66
67              ────────────────────────────
68              Paper                  HBPL
69              ────────────────────────────
70              A4                        1
71              B5jis                     2
72              A5                        3
73              letter                    4
74              executive                 5
75              fanfold german legal      6
76              folio                     6
77              legal                     7
78              env#10                    9
79              envMonarch               10
80              envC5                    11
81              envDL                    12
82
83       -n copies
84              Number of copies [1].
85
86       -r xresxyres
87              Set device resolution in pixels/inch [1200x600].
88
89       -s source
90              Source (Input Slot) code to send to printer [7].
91              │          │
92              │1   upper │ 4   manual
93              │2   lower │ 7   auto
94
95       -t     Draft mode.  Every other pixel is white.
96
97       -T density
98              Print density (1-5).  The default is 3 (medium).
99
100       -2 -3 -4 -5 -6 -8 -9 -10 -12 -14 -15 -16 -18
101              Print in N-up.  Requires the psutils package.
102
103       -o orient
104              Orientation used for N-up.
105
106              Portrait    -op   (normal)
107              Landscape   -ol   (rotated 90 degrees anticlockwise)
108              Seascape    -os   (rotated 90 degrees clockwise)
109
110   Printer Tweaking Options
111       These are the options used to customize the operation of foo2hbpl2  for
112       a particular printer.
113
114       -u xoffxyoff
115              Set  the  offset  of  the start of the printable region from the
116              upper left corner, in pixels  [varies  with  paper  size].   The
117              defaults should work on the 2200DL and 2300DL, and have not been
118              tested on any other printers.
119
120       -l xoffxyoff
121              Set the offset of the end of the printable region from the lower
122              right  corner, in pixels [varies with paper size].  The defaults
123              should work on the 2200DL and 2300DL, and have not  been  tested
124              on any other printers.
125
126       -L mask
127              Send  the  logical  clipping  values from -u/-l in the ZjStream.
128              foo2hbpl2-wrapper always runs Ghostscript with  the  ideal  page
129              dimensions,  so  that the scale of the image is correct, regard‐
130              less whether or not the printer has unprintable  regions.   This
131              option is used to move the position of the clipped image back to
132              where it belongs on the page.  The default is to send the amount
133              which  was  clipped  by  -u  and  -l, and should be good in most
134              cases.
135
136              0   don't send any logical clipping amounts
137              1   only send Y clipping amount
138              2   only send X clipping amount
139              3   send both X and Y clipping amounts
140
141       -P     Do not send START_PLANE codes  on  monochrome  output.   May  be
142              needed by some monochrome-only printers, such as the HP LaserJet
143              1000.
144
145       -X padlen
146              Add extra zero padding to the end of BID segments.  The  default
147              is  16  bytes.   Padding  16 bytes of zeroes is needed for older
148              ZjStream printers, such as the Minolta 2200DL  and  HP  LaserJet
149              1000,  and  seems  harmless  to  newer ones, such as the Minolta
150              2300DL.  So the default should be good for all cases.
151
152   Color Tweaking Options
153       These are the options used to control  the  quality  of  color  output.
154       Color correction is currently a WORK IN PROGRESS.
155
156       -g gsopts
157              Additional   options   to   pass   to   Ghostscript,   such   as
158              -g“-dDITHERPPI=nnn”, etc.  This  option  may  appear  more  than
159              once.
160
161       -G profile.icm
162              Convert  profile.icm  to a Postscript color rendering dictionary
163              (CRD) using icc2ps and adjust the printer colors  by  using  the
164              Postscript setcolorrendering operator.  (WORK IN PROGRESS).
165
166       -G gamma-file.ps
167              Prepend  gamma-file.ps  to the Postscript input to perform color
168              correction using the setcolortransfer Postscript operator.   For
169              example, the file might contain:
170              {0.333 exp} {0.333 exp} {0.333 exp} {0.333 exp} setcolortransfer
171
172       -I intent
173              Select  profile  intent from the ICM file.  0=Perceptual, 1=Col‐
174              orimetric, 2=Saturation, 3=Absolute.  Default is 0 (perceptual).
175
176   Debugging Options
177       These options are used for debugging foo2hbpl2 and its wrapper.
178
179       -S plane
180              Output just a single color plane from a color print and print it
181              on the black plane.  The default is to output all color planes.
182
183              1   Cyan
184              2   Magenta
185              3   Yellow
186              4   Black
187
188       -D level
189              Set Debug level [0].
190
191

EXAMPLES

193       Create  a  monochrome  ZjStream from a Postscript document, examine it,
194       and then print it using a RAW print queue:
195
196              foo2hbpl2-wrapper testpage.ps > testpage.prn
197              hbpl2decode < testpage.prn
198              lpr -P raw testpage.prn
199
200       Create a color ZjStream stream from a Postscript document:
201
202              foo2hbpl2-wrapper -c testpage.ps > testpage.prn
203
204

FILES

206       /usr/bin/foo2hbpl2-wrapper
207

SEE ALSO

209       foo2hbpl2(1), hbpldecode(1)
210

AUTHOR

212       Rick Richardson <rick.richardson@comcast.net>
213       http://foo2hbpl.rkkda.com/
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
Impressum