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 M1212nf MFP, and other XQX-based printers.
20
21 This script can be used in a standalone fashion, but is intended to be
22 called from a printer spooler system which uses the Foomatic printer
23 database.
24
25
27 Normal Options
28 These are the options used to select the parameters of a print job that
29 are usually controlled on a per job basis.
30
31 -d duplex
32 Duplex code to send to printer [1].
33 │ │ │
34 │1 off │ 2 long edge │ 3 short edge
35
36 -m media
37 Media code to send to printer [1].
38
39 ─────────────────────────
40 Media M1005
41 ─────────────────────────
42 standard 1
43 transparency 2
44 envelope 257
45 letterhead 259
46 thick 261
47 postcard 262
48 labels 263
49
50 -p paper
51 Paper size code to send to printer [1].
52
53 ┌──────────────────┬───────────────────┐
54 │ 1 letter │ 9 A4 │
55 │ 5 legal │ 11 A5 │
56 │ 7 executive │ 13 B5 │
57 │ 20 env #10 │ 27 env DL │
58 │ 28 env C5 │ 34 env B5 │
59 │ 37 env Monarch │ 257 16k 197x273 │
60 │263 16k 184x260 │ 263 16k 195x270 │
61 └──────────────────┴───────────────────┘
62 -n copies
63 Number of copies [1].
64
65 -r xresxyres
66 Set device resolution in pixels/inch [1200x600].
67
68 -s source
69 Source (Input Slot) code to send to printer [7].
70
71 ┌──────────┬────────────┐
72 │1 upper │ 4 manual │
73 │2 lower │ 7 auto │
74 └──────────┴────────────┘
75 -t Draft mode. Every other pixel is white.
76
77 -T density
78 Print density (1-5). The default is 3 (medium).
79
80 -2 -3 -4 -5 -6 -8 -9 -10 -12 -14 -15 -16 -18
81 Print in N-up. Requires the psutils package.
82
83 -o orient
84 Orientation used for N-up.
85
86 Portrait -op (normal)
87 Landscape -ol (rotated 90 degrees anticlockwise)
88 Seascape -os (rotated 90 degrees clockwise)
89
90 Printer Tweaking Options
91 These are the options used to customize the operation of foo2xqx for a
92 particular printer.
93
94 -u xoffxyoff
95 Set the offset of the start of the printable region from the
96 upper left corner, in pixels [varies with paper size]. The
97 defaults should work on the 2200DL and 2300DL, and have not been
98 tested on any other printers.
99
100 -l xoffxyoff
101 Set the offset of the end of the printable region from the lower
102 right corner, in pixels [varies with paper size]. The defaults
103 should work on the 2200DL and 2300DL, and have not been tested
104 on any other printers.
105
106 -L mask
107 Send the logical clipping values from -u/-l in the ZjStream.
108 foo2xqx-wrapper always runs Ghostscript with the ideal page
109 dimensions, so that the scale of the image is correct, regard‐
110 less whether or not the printer has unprintable regions. This
111 option is used to move the position of the clipped image back to
112 where it belongs on the page. The default is to send the amount
113 which was clipped by -u and -l, and should be good in most
114 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