pbmtoescp2

Convert a PBM image to a ESC/P2 printer file. See also: pbmtoepson, escp2topbm. More information: https://netpbm.sourceforge.net/doc/pbmtoescp2.html.

pbmtoescp2 path/to/image.pbm > path/to/output.escp2

pbmtoescp2 -compression 0|1 path/to/image.pbm > path/to/output.escp2

pbmtoescp2 -resolution 180|360|720 path/to/image.pbm > path/to/output.escp2

pbmtoescp2 -formfeed path/to/image.pbm > path/to/output.escp2