.TL Pbmtoescp2 User Manual .SH 1 pbmtoescp2 .LP Updated: 4 April 2005 .br Table Of Contents .SH 2 NAME .LP pbmtoescp2 - convert a PBM image to a ESC/P2 printer file .SH 2 SYNOPSIS .LP \fBpbmtoescp2\fR [\fB-compress=\fR\fIcompressionmode\fR] [\fB-resolution=\fR\fIdpi\fR] [\fIpbmfile\fR] .LP All options can be abbreviated to their shortest unique prefix. You may use two hyphens instead of one to designate an option. You may use either white space or equals signs between an option name and its value. .LP Input is read from file \fIpbmfile\fR if specified, otherwise from stdin. Output is written to stdout. .SH 2 DESCRIPTION .LP .LP This program is part of Netpbm. .LP \fBpbmtoescp2\fR reads a PBM image as input. It produces an ESC/P2 raster graphic printer control stream as output. .LP This program creates an output that is printable on Epson printers that understand the ESC/P2 printer control language (e.g. the Stylus models). For older Epson 9-pin dot matrix printers, which use the ESC/P protocol, see \fBpbmtoepson\fR. .SH 2 OPTIONS .LP .RS .IP "\fB-compress=\fR\fIcompressionmode\fR" This determines the compression mode that \fBpbmtoescp2\fR uses in its output. Valid values for \fIcompressionmode\fR are \fB0\fR and \fB1\fR. \fB-compress=0\fR results in a printer control stream with uncompressed raster graphic data. \fB-compress=1\fR results in a printer control stream with RLE compressed raster graphic data (RLE means Run Length Encoding). The default is \fB-compress=1\fR. .IP "\fB-resolution=\fR\fIdpi\fR" This determines the horizontal and the vertical print resolution set in the printer control stream. Another way of looking at it is a declaration of what the resolution of the input image is (PBM images don't have inherent resolution). Valid values for \fIdpi\fR are \fB180\fR and \fB360\fR. See hints for more information on this. .LP The default is \fB-resolution=360\fR. .RE .SH 2 HINTS .LP .LP RLE compresses very well bitmaps of line drawings, preferably horizontal oriented contents like texts, sheets of music, etc. However, bitmaps derived from photographs are not ideal for RLE. In extreme cases, when no byte repetitions occur in the input, the result will be even slightly bigger than the input. To avoid this, use compression mode 0 to switch off RLE. .LP Each pixel in the input PBM image becomes one dot in the printed output. Therefore, you must make sure the width and height of the input are appropriate for the print resolution you choose and the print area you want. E.g. if you print at 180 dpi and want the image to print as 8 inches by 10, you must supply a PBM that is 1440 pixels wide by 1800 pixels high. You can adjust the size of the input with \fBpamscale\fR, \fBpamstretch\fR, \fBpbmreduce\fR, or \fBpamenlarge\fR. .SH 2 SEE ALSO .LP \fBescp2topbm\fR, \fBpbmtoepson\fR, \fBpamscale\fR, \fBpamstretch\fR, \fBpbmreduce\fR, \fBpamenlarge\fR, \fBpbm\fR .SH 2 AUTHOR .LP .LP Copyright (C) 2003 by Ulrich Walcher (u.walcher@gmx.de). .SH 2 HISTORY .LP .LP \fBpbmtoescp2\fR was added to Netpbm in Release 10.18 (August 2003); it was created around the same time. .br \l'5i' .SH 2 Table Of Contents .LP .IP \(bu NAME .IP \(bu SYNOPSIS .IP \(bu DESCRIPTION .IP \(bu OPTIONS .IP \(bu HINTS .IP \(bu SEE ALSO .IP \(bu AUTHOR .IP \(bu HISTORY .LP