.TL
Pnmtopclxl User Manual
.SH 1
pnmtopclxl
.LP
Updated: 20 July 2005
.br
Table Of Contents
.SH 2
NAME
.LP
pnmtopclxl - convert a PNM image to an HP LaserJet PCL XL printer stream
.SH 2
SYNOPSIS
.LP
\fBpnmtopclxl\fR
[\fB-dpi\fR \fIN\fR]
[\fB-xoffs\fR \fIN\fR]
[\fB-yoffs\fR \fIN\fR]
[\fB-center\fR]
[\fB-duplex\fR {\fBvertical\fR|\fBhorizontal\fR}]
[\fB-format\fR \fIpaperformat\fR]
[\fB-feeder\fR \fIN\fR]
[\fB-copies\fR \fIN\fR]
[\fB-colorok\fR]
[\fB-rendergray\fR]
[\fB-jobsetup=\fR\fIfilename\fR]
\fIpnmfile1\fR \fIpnmfile2\fR ...
.SH 2
DESCRIPTION
.LP
.LP
This program is part of Netpbm.
\fBpnmtopclxl\fR 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.
.LP
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 \fBppmtopgm\fR. See the
\fB-colorok\fR option for more information about choosing between color
and grayscale.
.LP
The output goes to Standard Output. All of the pages go to one
file, concatenated in the same order as the input images.
.SH 2
OPTIONS
.LP
.RS
.IP "\fB-dpi\fR \fIN\fR"
This option selects the resolution of the image (not the printer!).
\fIN\fR is the resolution in dots per inch, from 1 to 65535. The default
is 300.
.IP "\fB-xoffs\fR \fIN\fR"
This option and \fB-yoffs\fR 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.
.LP
\fB-xoffs\fR and \fB-yoffs\fR 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.
.LP
These options are meaningless if you specify \fB-center\fR.
.IP "\fB-yoffs\fR \fIN\fR"
See \fB-xoffs\fR.
.IP "\fB-center\fR"
This option tells \fBpnmtopclxl\fR 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 \fB-xoffs\fR and \fB-yoffs\fR (or their defaults).
.IP "\fB-duplex\fR {\fBvertical\fR|\fBhorizontal\fR} This option"
causes \fBpnmtopclxl\fR to create a printer stream that prints pages
on boths sides of the sheet of paper. \fBvertical\fR means to print
them so that the left edge of both pages is on the same edge of the
sheet, while \fBhorizontal\fR means the more usual duplexing where the
top of both pages is on the same edge of the sheet.
.IP "\fB-format\fR \fIpaperformat\fR"
This option selects the media (e.g. paper size) that the printer
control stream specifies. \fIpaperformat\fR is one of the following
self-explanatory keywords:
.IP \(bu
letter
.IP \(bu
legal
.IP \(bu
a3
.IP \(bu
a4
.IP \(bu
a5
.IP \(bu
a6
.IP \(bu
jb4
.IP \(bu
jb5
.IP \(bu
jb6
.IP \(bu
exec
.IP \(bu
ledger
.IP \(bu
b5envelope
.IP \(bu
c5envelope
.IP \(bu
com10envelope
.IP \(bu
monarchenvelope
.IP \(bu
dlenvelope
.IP \(bu
jpostcard
.IP \(bu
jdoublepostcard
.LP
.LP
The default is "letter".
.IP "\fB-feeder\fR \fIN\fR"
This options selects the media source (e.g. paper tray) that the
printer control stream specifies.
.IP "\fB-copies\fR \fIN\fR"
This option specifies the number of copies that the printer control
stream tells the printer to print.
.IP "\fB-colorok\fR"
This option simply tells \fBpnmtopclxl\fR not to warn you if you supply
a color input and therefore get color output. By default, \fBpnmtopclxl\fR
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.
.IP "\fB-rendergray\fR"
This option causes \fBpnmtopclxl\fR 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.
.LP
This option was new in Netpbm 10.29 (August 2005).
.IP "\fB-jobsetup=\fR\fIfilename\fR"
This option causes \fBpnmtopclxl\fR to include arbitary job setup
PJL commands at the beginning of the output stream. It reads them from
the named file.
.LP
\fBpnmtopclxl\fR 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.
.LP
This option was new in Netpbm 10.29 (August 2005).
.RE
.SH 2
SEE ALSO
.LP
\fBppmtolj\fR,
\fBpbmtolj\fR,
\fBppmtopj\fR,
\fBppmtopjxl\fR,
\fBthinkjettopbm\fR,
\fBppm\fR
.SH 2
HISTORY
.LP
.LP
\fBpnmtopclxl\fR was added to Netpbm in Release 10.6 (July 2002).
It was contributed by
Jochen Karrer.
.br
\l'5i'
.SH 2
Table Of Contents
.LP
.IP \(bu
NAME
.IP \(bu
SYNOPSIS
.IP \(bu
DESCRIPTION
.IP \(bu
OPTIONS
.IP \(bu
SEE ALSO
.IP \(bu
HISTORY
.LP
|