summary refs log tree commit diff
path: root/pnmtopclxl.html
blob: 1516d5087b22368e6b8d1b4034b206eca8181b0c (plain) (blame)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><TITLE>Pnmtopclxl User Manual</TITLE></HEAD>
<BODY>
<H1>pnmtopclxl</H1>
Updated: 20 July 2005
<BR>

<A HREF="#index">Table Of Contents</A>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
pnmtopclxl - convert a PNM image to an HP LaserJet PCL XL printer stream

<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>

<B>pnmtopclxl</b>
[<b>-dpi</b> <i>N</i>]
[<b>-xoffs</b> <i>N</i>]
[<b>-yoffs</b> <i>N</i>]
[<b>-center</b>]
[<b>-duplex</b> {<b>vertical</b>|<b>horizontal</b>}]
[<b>-format</b> <i>paperformat</i>]
[<b>-feeder</b> <i>N</i>]
[<b>-copies</b> <i>N</i>]
[<b>-colorok</b>]
[<b>-rendergray</b>]
[<b>-jobsetup=</b><i>filename</i>]
<i>pnmfile1</i> <i>pnmfile2</i> ...


<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>

<p>This program is part of <a href="index.html">Netpbm</a>.

<b>pnmtopclxl</b> reads one or more PNM input streams, each containing one
or more PNM images, and generates a sequence of output pages in the
HP PCL-XL (formerly named PCL 6) printer control language.  You can send
this stream to a PCL-XL printer to print the images.

<p>If the input is PPM, the output is a color printer stream (the PCL
color space is RGB).  Otherwise, the output is grayscale (the PCL color space
is grayscale).  If you want a grayscale output from a color input, run your
input through <b><a href="ppmtopgm.html">ppmtopgm</a></b>.  See the 
<b>-colorok</b> option for more information about choosing between color
and grayscale.

<p>The output goes to Standard Output.  All of the pages go to one
file, concatenated in the same order as the input images.


<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>

<DL COMPACT>

<dt><b>-dpi</b> <i>N</i>
<dd>This option selects the resolution of the image (not the printer!).
<i>N</i> is the resolution in dots per inch, from 1 to 65535.  The default
is 300.

<dt><b>-xoffs</b> <i>N</i>
<dd>This option and <b>-yoffs</b> determine the location on the page of the
upper left corner of each image.  Note that the image may have built in
borders tool, which would make the main image within more left and down 
that what you specify here.

<p><b>-xoffs</b> and <b>-yoffs</b> specify the distance from the left of the
page and from the top of the page, respectively, in inches, of the upper left
corner of the image.  The default for each is zero.

<p>These options are meaningless if you specify <b>-center</b>.

<dt><b>-yoffs</b> <i>N</i>
<dd>See <b>-xoffs</b>.

<dt><b>-center</b>
<dd>This option tells <b>pnmtopclxl</b> to center each image on the page.
If you don't specify this option, the position of an image on the page is
determined by <b>-xoffs</b> and <b>-yoffs</b> (or their defaults).

<dt><b>-duplex</b> {<b>vertical</b>|<b>horizontal</b>} <dd>This option
causes <b>pnmtopclxl</b> to create a printer stream that prints pages
on boths sides of the sheet of paper.  <b>vertical</b> means to print
them so that the left edge of both pages is on the same edge of the
sheet, while <b>horizontal</b> means the more usual duplexing where the
top of both pages is on the same edge of the sheet.

<dt><b>-format</b> <i>paperformat</i>
<dd>This option selects the media (e.g. paper size) that the printer
control stream specifies.  <i>paperformat</i> is one of the following
self-explanatory keywords:

<ul>
<li>letter
<li>legal
<li>a3
<li>a4
<li>a5
<li>a6
<li>jb4
<li>jb5
<li>jb6
<li>exec
<li>ledger
<li>b5envelope
<li>c5envelope
<li>com10envelope
<li>monarchenvelope
<li>dlenvelope
<li>jpostcard
<li>jdoublepostcard
</ul>

<p>The default is "letter".

<dt><b>-feeder</b> <i>N</i>
<dd>This options selects the media source (e.g. paper tray) that the
printer control stream specifies.

<dt><b>-copies</b> <i>N</i>
<dd>This option specifies the number of copies that the printer control
stream tells the printer to print.

<dt><b>-colorok</b>
<dd>This option simply tells <b>pnmtopclxl</b> not to warn you if you supply
a color input and therefore get color output.  By default, <b>pnmtopclxl</b>
issues a warning any time it produces a color printer stream because it is
usually a mistake.  It's a mistake because PCL XL is mainly used for laser
printers, and laser printers are mainly black and white.  If you send a color
print stream to a black and white printer, it typically refuses to print
anything, and even if it manages to convert it to black and white and print
it, it takes 3 times as long to transmit a color stream to the printer than
to transmit the grayscale image that gives the same result.

<dt><b>-rendergray</b>

<dd>This option causes <b>pnmtopclxl</b> to include in the output
stream a command to set the RENDERMODE environment variable to
GRAYSCALE, which typically causes the printer to print in grayscale
regardless of the colors in the input, and may cause it to run much
faster even if the image is grayscale anyway.

<p>This option was new in Netpbm 10.29 (August 2005).

<dt><b>-jobsetup=</b><i>filename</i>

<dd>This option causes <b>pnmtopclxl</b> to include arbitary job setup
PJL commands at the beginning of the output stream.  It reads them from
the named file.

<p><b>pnmtopclxl</b> does not inspect these commands in any way, but it
does expect them to be job setup commands.  If you have garbage in your
file, you will hear from the printer.

<p>This option was new in Netpbm 10.29 (August 2005).

</DL>


<A NAME="seealso">&nbsp;</A>
<H2>SEE ALSO</H2>

<a href="ppmtolj.html"><b>ppmtolj</b></a>,
<a href="pbmtolj.html"><b>pbmtolj</b></a>,
<a href="ppmtopj.html"><b>ppmtopj</b></a>,
<a href="ppmtopjxl.html"><b>ppmtopjxl</b></a>,
<a href="thinkjettopbm.html"><b>thinkjettopbm</b></a>,
<a href="ppm.html"><b>ppm</b></a>

<A NAME="history">&nbsp;</A>
<H2>HISTORY</H2>

<p><b>pnmtopclxl</b> was added to Netpbm in Release 10.6 (July 2002).
It was contributed by
<a href="mailto:cip307@cip.physik.uni-wuerzburg.de">Jochen Karrer</a>.

<HR>
<A NAME="index">&nbsp;</A>
<H2>Table Of Contents</H2>
<UL>
<LI><A HREF="#lbAB">NAME</A>
<LI><A HREF="#lbAC">SYNOPSIS</A>
<LI><A HREF="#lbAD">DESCRIPTION</A>
<LI><A HREF="#lbAE">OPTIONS</A>
<LI><A HREF="#seealso">SEE ALSO</A>
<LI><A HREF="#history">HISTORY</A>
</UL>
</BODY>
</HTML>