1Pbmtoescp2 User Manual(0)                            Pbmtoescp2 User Manual(0)
2
3
4

NAME

6       pbmtoescp2 - convert a PBM image to a ESC/P2 printer file
7
8

SYNOPSIS

10       pbmtoescp2
11
12       [-compress=compressionmode]                 [-resolution={180|360|720}]
13       [-stripeheight=n] [-formfeed] [-raw] [pbmfile]
14
15       All options can be abbreviated to their shortest  unique  prefix.   You
16       may use two hyphens instead of one to designate an option.  You may use
17       either white space or equals signs  between  an  option  name  and  its
18       value.
19
20

DESCRIPTION

22       This program is part of Netpbm(1).
23
24       pbmtoescp2  reads  a  PBM image as input.  It produces an ESC/P2 raster
25       graphic printer control stream as output.
26
27        This program creates an output that is  printable  on  Epson  printers
28       that  understand  the  ESC/P2 printer control language (e.g. the Stylus
29       models).  For older Epson 9-pin dot  matrix  printers,  which  use  the
30       ESC/P protocol, see pbmtoepson.
31
32       The  printed  output  has  one pixel for each pixel of the input image,
33       except that it is padded up  to  the  stripe  size  (see  -stripeheight
34       option) vertically and to a multiple of 8 columns horizontally.  Before
35       Netpbm 10.72 (September 2015), the output is instead truncated to those
36       boundaries.
37
38       Input  is  read  from  file pbmfile if specified, otherwise from stdin.
39       Output is written to stdout.
40
41

OPTIONS

43       In addition to the options common to all programs  based  on  libnetpbm
44       (most notably -quiet, see
45        Common Options ⟨index.html#commonoptions⟩ ), pbmtoescp2 recognizes the
46       following command line options:
47
48
49
50
51       -compress=compressionmode
52              This determines the compression mode that pbmtoescp2 uses in its
53              output.   Valid  values  for compressionmode are 0 and 1.  -com‐
54              press=0 results in a printer control  stream  with  uncompressed
55              raster  graphic  data.  -compress=1 results in a printer control
56              stream with RLE compressed raster graphic data  (RLE  means  Run
57              Length Encoding).  The default is -compress=1.
58
59
60
61       -resolution=dpi
62              This determines the horizontal and the vertical print resolution
63              set in the printer control stream.  Another way of looking at it
64              is  a  declaration  of what the resolution of the input image is
65              (PBM images don't have inherent resolution).  Valid  values  for
66              dpi  are 180, 360, and 720.  See hints ⟨#hints⟩  for more infor‐
67              mation on this.
68
69              The default is -resolution=360.
70
71              Before Netpbm 10.72 (September 2015), 720 is not valid.
72
73
74
75
76       -stripeheight=n
77              This option controls the height in lines of the stripes  in  the
78              output.
79
80              The  valid  stripe heights in the printer language are 1, 8, and
81              24, but it is capable of expressing any height  up  to  255  and
82              pbmtoescp2  accepts  any  value in the range 1-255.  It issues a
83              warning, though, if you choose something other than 1, 8, or 24.
84
85              The default is 24.
86
87              This option was new in Netpbm 10.72  (September  2015).   Before
88              that, the stripe size is always 24.
89
90
91       -formfeed
92              This option causes pbmtoescp2 to place a formfeed command at the
93              end of the output.
94
95              This option was new in Netpbm 10.72 (September 2015).
96
97
98
99       -raw   This option causes pbmtoescp2 to generate only the data  blocks.
100              It  does not generate printer commands to set up the output (for
101              example, setting the line spacing).
102
103              You can use this to insert graphics into a larger  printer  com‐
104              mand stream.
105
106              This option was new in Netpbm 10.72 (September 2015).
107
108
109
110

HINTS

112       RLE  compresses very well bitmaps of line drawings, preferably horizon‐
113       tal oriented contents like texts, sheets of music, etc.  However,  bit‐
114       maps derived from photographs are not ideal for RLE.  In extreme cases,
115       when no byte repetitions occur in the input, the result  will  be  even
116       slightly  bigger than the input.  To avoid this, use compression mode 0
117       to switch off RLE.
118
119       Each pixel in the input PBM image becomes one dot in the  printed  out‐
120       put.   Therefore,  you must make sure the width and height of the input
121       are appropriate for the print resolution you choose and the print  area
122       you  want.  E.g. if you print at 180 dpi and want the image to print as
123       8 inches by 10, you must supply a PBM that is 1440 pixels wide by  1800
124       pixels  high.  You can adjust the size of the input with pamscale, pam‐
125       stretch, pbmreduce, or pamenlarge.
126
127
128

SEE ALSO

130       escp2topbm(1), pbmtoepson(1), pamscale(1), pamstretch(1), pbmreduce(1),
131       pamenlarge(1), pbm(1)
132
133

AUTHOR

135       Copyright (C) 2003 by Ulrich Walcher (u.walcher@gmx.de).
136
137

HISTORY

139       pbmtoescp2  was  added to Netpbm in Release 10.18 (August 2003); it was
140       created around the same time.
141

DOCUMENT SOURCE

143       This manual page was generated by the Netpbm tool 'makeman'  from  HTML
144       source.  The master documentation is at
145
146              http://netpbm.sourceforge.net/doc/pbmtoescp2.html
147
148netpbm documentation             14 July 2015        Pbmtoescp2 User Manual(0)
Impressum