summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-tumbleweed/man1/pbmtoppa.1
blob: a406136f5b19e8e63a7605fa0bad2a19b0c4c37a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
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
205
206
207
208
209
210
211
212
213
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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
\
.\" This man page was generated by the Netpbm tool 'makeman' from HTML source.
.\" Do not hand-hack it!  If you have bug fixes or improvements, please find
.\" the corresponding HTML page on the Netpbm website, generate a patch
.\" against that, and send it to the Netpbm maintainer.
.TH "Pbmtoppa User Manual" 0 "01 May 2005" "netpbm documentation"

.SH NAME
pbmtoppa - convert PBM image to HP Printer Performance Architecture (PPA)

.UN synopsis
.SH SYNOPSIS

\fBpbmtoppa\fP
[\fIpbm_file\fP
[\fIppa_file\fP]]

.UN description
.SH DESCRIPTION
.PP
This program is part of
.BR "Netpbm" (1)\c
\&.

\fBpbmtoppa\fP converts page images in PBM format to Hewlett
Packard's PPA (Printer Performance Architecture) format, which is the
data stream format expected by some HP "Windows-only"
printers including the HP Deskjet 820C series, the HP DeskJet 720
series, and the HP DeskJet 1000 series.
.PP
\fIpbm_file\fP is the file specification of the input file or
\fB-\fP for Standard Input.  The default is Standard Input.
.PP
The input file contains one or more PBM images, with each one
being a single page.  Each image must have the exact dimensions of a
page (at 600 pixels per inch in both directions).  Significantly, this
is the format that Ghostscript produces.
.PP
\fIppa_file\fP is the file specification of the output file or
\fB-\fP for Standard Output.  The default is Standard Output.
.PP
To print Postscript on an HP PPA printer, just use Ghostscript with
the \fBpbmraw\fP (or \fBpbm\fP) device driver.
.PP
You can generate a test page for use with this program with
\fBpbmpage\fP.
.PP
You can also set up a printer filter so you can submit PBM input
directly to your print queue.  See the documentation for your print
spooler for information on how to do that, or look in hp820install.doc
for an example lpd print filter for Postscript and text files.
.PP
Sometimes, \fBpbmtoppa\fP generates a file which the printer will
not print (because \fBpbmtoppa\fP's input is unprintable).  When this
happens, all three lights blink to signal the error.  This is usually
because there is material outside of the printer's printable area.  To
make the file print, increase the margins via \fBpbmtoppa\fP options
or a configuration file.  See 
.UR #calibration
the section on calibration 
.UE
\& below.

.SS About PPA
.PP
The PPA printer language is a far lower level language than most.
When you use a PPA printer, most of the processing that a conventional
printer does is done instead on the computer end of the wire.  In
particular, \fBpbmtoppa\fP has to do "swath cutting," and
"sweep formatting," which other printers do themselves.
There is very little intelligence inside a PPA printer;
\fBpbmtoppa\fP generates direct controls for the printer's hardware.
.PP
The design goal of PPA was to reduce the cost of a printer by exploiting
computing resources already present in the computer that requests the
printing.  CPU power, ROM, and RAM requirements inside the printer are all
reduced compared to a conventional printer.
.PP
PPA was new in 1997.  It was preceded by Hewlett Packard's PCL
(Printer Control Language) language.  HP manufactured PPA printers for only
a few years, and no one else ever did.

.UN options
.SH OPTIONS
.PP
In addition to the options common to all programs based on libnetpbm
(most notably \fB-quiet\fP, see 
.UR index.html#commonoptions
 Common Options
.UE
\&), \fBpbmtoppa\fP recognizes the following
command line options:


.TP
\fB-v\fP \fIversion\fP
printer version (720, 820, or 1000)

.TP
\fB-x\fP \fIxoff\fP
horizontal offset adjustment in 1/600 inches.

.TP
\fB-y\fP \fIyoff\fP
vertical offset adjustment in 1/600 inches.

.TP
\fB-t\fP \fItopmarg\fP
top margin in 1/600 inches    (default: 150 = 0.25 inch)

.TP
\fB-l\fP \fIleftmarg\fP
left margin in 1/600 inches   (default: 150 = 0.25 inch)

.TP
\fB-r\fP \fIrightmarg\fP
right margin in 1/600 inches (default: 150 = 0.25 inch)

.TP
\fB-b\fP \fIbotmarg\fP
bottom margin in 1/600 inches (default: 150 = 0.25 inch)

.TP
\fB-s\fP \fIpaper\fP
paper size: \fBus\fP or \fBa4\fP.  Default is \fBus\fP.

.TP
\fB-d\fP \fIdpi\fP
Print resolution in dots per inch.

.TP
\fB-f\fP \fIcfgfile\fP
Read parameters from the configuration file named \fIcfgfile\fP.
See 
.UR #configfile
CONFIGURATION FILES
.UE
\&


.PP
The offset adjustments you specify with \fB-x\fP and \fB-y\fP
accumulate.  I.e. if you specify them multiple times, the total offset
adjustment is the sum of the adjustments you specify.  \fB-x 60 -x 120\fP
is the same as \fB-x 180\fP.
.PP
The \fB-v\fP option undoes any preceding \fB-x\fP and \fB-y\fP
options, leaving the horizontal and vertical adjustments their
default values.


.UN configfile
.SH CONFIGURATION FILES
.PP
You can use a configuration file to specify parameters rather than
use invocation options.  \fBpbmtoppa\fP processes the file
\fB/etc/pbmtoppa.conf\fP, if it exists, before processing any
options.  It then processes each configuration file named by a
\fB-f\fP option in order, applying the parameters from the
configuration file as if they were invocation options used in the
place of the \fB-f\fP option.
.PP
Configuration files have the following format:

.nf
\fB#\fP\fIComment\fP
\fIkey1\fP \fIvalue1\fP
\fIkey2\fP \fIvalue2\fP
[etc.]

.fi
.PP
Valid \fIkey\fPs are \fBversion\fP, \fBxoffset\fP,
\fByoffset\fP, \fBtopmargin\fP, \fBleftmargin\fP,
\fBrightmargin\fP, \fBbottommargin\fP, \fBpapersize\fP, or any
non-null prefix of these words.  Valid values are the same as with the
corresponding invocation parameters.

.UN examples
.SH EXAMPLES
.PP
Print a test pattern: 
.nf
\fBpbmpage | pbmppa >/dev/lp1\fP

.fi
.PP
Print three pages:
.nf
\fBcat page1.pbm page2.pbm page3.pbm | pbmppa >/dev/lp1\fP

.fi
.PP
Print the Postscript file myfile.ps:
.nf
gs -sDEVICE=rawpbm -q -dNOPAUSE -r600 \e
   -sOutputFile=- myfile.ps ;\e
| pbmtoppa | lpr

.fi

.UN calibration
.SH CALIBRATION
.PP
To be able to print successfully and properly, you need to tell
\fBpbmtoppa\fP an X and a Y offset appropriate for your printer to
use when generating the page.  You can specify these offsets with the
\fB-x\fP and \fB-y\fP invocation options or with the \fBxoff\fP and
\fByoff\fP parameters in a \fBpbmtoppa\fP configuration file.
.PP
To determine the correct offsets, use the \fBpbmpage\fP program.
.PP
If while trying to do this calibration, the printer refuses to
print a page, but just blinks all three lights, specify large margins
(e.g. 600 pixels -- one inch) via \fBpbmpage\fP invocation options
while doing the calibration.
.PP
For example:
.nf
\fBpbmpage | pbmtoppa >/dev/lp1\fP

.fi
or
.nf
\fBpbmpage | pbmtoppa | lpr -l\fP

.fi

(if your printer filter recognizes the '-l' (direct output) parameter).
.PP
In the test pattern, the grid is marked off in pixel coordinate
numbers.  Unfortunately, these coordinates are probably cut off before
the edge of the paper.  You'll have to use a ruler to estimate the
pixel coordinate of the left and top edges of the actual sheet of
paper (should be within +/- 300, may be negative; there are 600 pixels
per inch).
.PP
Add these coordinates to the X and Y offsets by either editing the
configuration file or using the \fB-x \fP and \fB-y\fP command-line
parameters.
.PP
When \fBpbmtoppa\fP is properly calibrated, the center mark should
be in the center of the paper.  Also, the margins should be able to be
as small as 1/4 inch without causing the printer to choke with
\&'blinking lights syndrome'.

.UN redhat
.SH RED HAT LINUX INSTALLATION
.PP
RedHat users may find the following tip from Panayotis Vryonis
<\fIvrypan@hol.gr\fP> helpful.  The
same should work for the 820 and 1000, but it hasn't been tested.
Also, use the pbmraw GSDriver if you have it; it's faster.
.PP
Here is a tip to integrate HP720C capability in RedHat's printtool:
.PP
Install pbmtoppa. Copy pbmtoppa to /usr/bin.
.PP
Edit "printerdb" (in my system it is found in
/usr/lib/rhs/rhs-printfilters ) and append the following lines:

.nf
\f(CW
  
----------------------Cut here-----------------------

StartEntry: DeskJet720C
  GSDriver: pbm
  Description:\ {HP\ DeskJet\ 720C}
  About: { \e
        This driver drives the HP DeskJet 720C \e
        inkjet printer. \e
        It cannot do color printing. \e
        IMPORTANT! Insert \e
           "- | pbm2ppa -" \e
        in the "Extra GS Options " field.\e
      }

  Resolution: {600} {600} {}

EndEntry
----------------------------------------------------
  \fP

.fi
.PP
Now you can add an HP720C printer just like any other, using
printtool.

.UN seealso
.SH SEE ALSO
.BR "pbmpage" (1)\c
\&,
.BR "pstopnm" (1)\c
\&,
.BR "pbm" (5)\c
\&
.PP
This program was derived from \fBpbm2ppa\fP.  \fBpbm2ppa\fP is obsolete 
and has been replaced by \fBpnm2ppa\fP, which does the same things as 
\fBpbmtoppa\fP except it also works with color and has lots more features.  See 
.UR http://pnm2ppa.sourceforge.net
http://pnm2ppa.sourceforge.net
.UE
\& 
for more information about the PPA protocol and the separately distributed 
\fBpnm2ppa\fP program.
.PP
The file INSTALL-MORE in the pbmtoppa directory of the Netpbm
source code contains detailed instructions on setting up a system to
use pbmtoppa to allow convenient printing on HP PPA printers.  It was
written by Michael Buehlmann.

.UN author
.SH AUTHOR
.PP
Tim Norman.  Copyright (C) 1998.  Licensed under GNU General Public License
.PP
Manual page by Bryan Henderson, May 2000.
.SH DOCUMENT SOURCE
This manual page was generated by the Netpbm tool 'makeman' from HTML
source.  The master documentation is at
.IP
.B http://netpbm.sourceforge.net/doc/pbmtoppa.html
.PP