1foo2xqx-wrapper(1) General Commands Manual foo2xqx-wrapper(1)
2
3
4
5
6
8 foo2xqx-wrapper - Convert Postscript into a XQX printer stream
9
11 foo2xqx-wrapper [options] [ps-file]
12
14 foo2xqx-wrapper is a Foomatic compatible printer wrapper for the
15 foo2xqx printer driver. This script reads a Postscript ps-file or
16 standard input and converts it to XQX printer format for driving the HP
17 LaserJet P1005/P1006/P1007/P1008, the HP LaserJet P1505, the HP Laser‐
18 Jet P2014, the HP LaserJet M1005 MFP, the HP LaserJet M1120 MFP, the HP
19 LaserJet Pro M1132s MFP, the HP LaserJet Pro M1212nf MFP, and other
20 XQX-based 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
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 -d duplex
33 Duplex code to send to printer [1].
34 │ │ │
35 │1 off │ 2 long edge │ 3 short edge
36
37 -m media
38 Media code to send to printer [1].
39
40 ─────────────────────────
41 Media M1005
42 ─────────────────────────
43 standard 1
44 transparency 2
45 envelope 257
46 letterhead 259
47 thick 261
48 postcard 262
49 labels 263
50
51 -p paper
52 Paper size code to send to printer [1].
53
54 ┌──────────────────┬───────────────────┐
55 │ 1 letter │ 9 A4 │
56 │ 5 legal │ 11 A5 │
57 │ 7 executive │ 13 B5 │
58 │ 20 env #10 │ 27 env DL │
59 │ 28 env C5 │ 34 env B5 │
60 │ 37 env Monarch │ 257 16k 197x273 │
61 │263 16k 184x260 │ 263 16k 195x270 │
62 └──────────────────┴───────────────────┘
63 -n copies
64 Number of copies [1].
65
66 -r xresxyres
67 Set device resolution in pixels/inch [1200x600].
68
69 -s source
70 Source (Input Slot) code to send to printer [7].
71
72 ┌──────────┬────────────┐
73 │1 upper │ 4 manual │
74 │2 lower │ 7 auto │
75 └──────────┴────────────┘
76 -t Draft mode. Every other pixel is white.
77
78 -T density
79 Print density (1-5). The default is 3 (medium).
80
81 -2 -3 -4 -5 -6 -8 -9 -10 -12 -14 -15 -16 -18
82 Print in N-up. Requires the psutils package.
83
84 -o orient
85 Orientation used for N-up.
86
87 Portrait -op (normal)
88 Landscape -ol (rotated 90 degrees anticlockwise)
89 Seascape -os (rotated 90 degrees clockwise)
90
91 Printer Tweaking Options
92 These are the options used to customize the operation of foo2xqx for a
93 particular printer.
94
95 -u xoffxyoff
96 Set the offset of the start of the printable region from the up‐
97 per left corner, in pixels [varies with paper size]. The de‐
98 faults should work on the 2200DL and 2300DL, and have not been
99 tested on any other printers.
100
101 -l xoffxyoff
102 Set the offset of the end of the printable region from the lower
103 right corner, in pixels [varies with paper size]. The defaults
104 should work on the 2200DL and 2300DL, and have not been tested
105 on any other printers.
106
107 -L mask
108 Send the logical clipping values from -u/-l in the ZjStream.
109 foo2xqx-wrapper always runs Ghostscript with the ideal page di‐
110 mensions, so that the scale of the image is correct, regardless
111 whether or not the printer has unprintable regions. This option
112 is used to move the position of the clipped image back to where
113 it belongs on the page. The default is to send the amount which
114 was clipped by -u and -l, and should be good in most cases.
115
116 0 don't send any logical clipping amounts
117 1 only send Y clipping amount
118 2 only send X clipping amount
119 3 send both X and Y clipping amounts
120
121 Debugging Options
122 These options are used for debugging foo2xqx and its wrapper.
123
124 -D level
125 Set Debug level [0].
126
127
129 Create a monochrome ZjStream from a Postscript document, examine it,
130 and then print it using a RAW print queue:
131
132 foo2xqx-wrapper testpage.ps > testpage.xqx
133 xqxdecode < testpage.xqx
134 lpr -P raw testpage.xqx
135
136
138 /usr/bin/foo2xqx-wrapper
139
141 foo2xqx(1), xqxdecode(1)
142
144 Rick Richardson <rick.richardson@comcast.net>
145 http://foo2xqx.rkkda.com/
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
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