\ .\" 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 "Pbmtoescp2 User Manual" 0 "4 April 2005" "netpbm documentation" .SH NAME pbmtoescp2 - convert a PBM image to a ESC/P2 printer file .UN synopsis .SH SYNOPSIS \fBpbmtoescp2\fP [\fB-compress=\fP\fIcompressionmode\fP] [\fB-resolution=\fP\fIdpi\fP] [\fIpbmfile\fP] .PP 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. .UN description .SH DESCRIPTION .PP This program is part of .BR Netpbm (1) . .PP \fBpbmtoescp2\fP reads a PBM image as input. It produces an ESC/P2 raster graphic printer control stream as output. .PP 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\fP. .UN options .SH OPTIONS .PP Input is read from file \fIpbmfile\fP if specified, otherwise from stdin. Output is written to stdout. .TP \fB-compress=\fP\fIcompressionmode\fP This determines the compression mode that \fBpbmtoescp2\fP uses in its output. Valid values for \fIcompressionmode\fP are \fB0\fP and \fB1\fP. \fB-compress=0\fP results in a printer control stream with uncompressed raster graphic data. \fB-compress=1\fP results in a printer control stream with RLE compressed raster graphic data (RLE means Run Length Encoding). The default is \fB-compress=1\fP. .TP \fB-resolution=\fP\fIdpi\fP 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\fP are \fB180\fP and \fB360\fP. See .UR #hints hints .UE \& for more information on this. .sp The default is \fB-resolution=360\fP. .UN hints .SH HINTS .PP 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. .PP 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\fP, \fBpamstretch\fP, \fBpbmreduce\fP, or \fBpamenlarge\fP. .UN seealso .SH SEE ALSO .BR escp2topbm (1) , .BR pbmtoepson (1) , .BR pamscale (1) , .BR pamstretch (1) , .BR pbmreduce (1) , .BR pamenlarge (1) , .BR pbm (5) .UN author .SH AUTHOR .PP Copyright (C) 2003 by Ulrich Walcher (\fIu.walcher@gmx.de\fP). .UN history .SH HISTORY .PP \fBpbmtoescp2\fP was added to Netpbm in Release 10.18 (August 2003); it was created around the same time.