{
    "mode": "man",
    "parameter": "pbmtoepson",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/pbmtoepson/1/json",
    "generated": "2026-10-22T17:43:47Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "pbmtoepson - convert a PBM image into Epson printer graphics\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "pbmtoepson",
                    "content": "[-dpi=n] [-protocol={escp9|escp}] [-adjacent] [-nonadjacent]\n\n[pbmfile]\n\n"
                }
            ]
        },
        "DESCRIPTION": {
            "content": "This program is part of Netpbm(1).\n\npbmtoepson reads a PBM image as input and produces a stream of Epson printer graphics as out‐\nput.\n\nThe  input  is from the file identified by the pbmfile argument or, if you don't specify pbm‐\nfile, from Standard Input.  Output is to Standard Output.\n\nThe output is for traditional (ca 1991) Epson  9-wire  dot  matrix  (sometimes  called  ESC/P\n9-wire)  printers  or newer ESC/P printers.  For a more modern Epson ESC/P2 type printer, try\npbmtoescp2.\n\nBefore Netpbm 10.23 (July 2004), pbmtoepson could not produce ESC/P  streams  --  only  ESC/P\n9-wire.\n\nThe Epson printer protocols are described in Epson's protocol specification.\n\nNote that there is no epsontopbm tool - this transformation is one way.\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "In  addition  to  the options common to all programs based on libnetpbm (most notably -quiet,\nsee  Common Options ), pbmtoepson recognizes the following command line options:\n\n\n\n",
            "subsections": [
                {
                    "name": "-protocol=",
                    "content": "This determines which Epson printer protocol the output  uses.   escp9  is  the  older\nESC/P  9-pin  protocol.   escp is the newer ESC/P protocol.  For the even newer ESC/P2\nprotocol, you have to use pbmtoescp2 instead.\n\nThis option was new in Netpbm 10.23 (July 2004).\n\n\n"
                },
                {
                    "name": "-dpi=_",
                    "content": "only  certain values: 60, 72, 80, 90, 120, 144, and 240.  Actually, the ESC/P protocol\nallows a few others, but pbmtoepson doesn't know how to generate the  command  streams\nthat use them.\n\nIf  you don't specify this, pbmtoepson chooses a horizontal print density for you con‐\nsistent with your other options.\n\nThis option was new in Netpbm 10.23 (July 2004).\n\n"
                },
                {
                    "name": "-adjacent",
                    "content": ""
                },
                {
                    "name": "-nonadjacent",
                    "content": "These options determine whether the output uses \"adjacent dot printing\" or not,  what‐\never that is.\n\nIf you don't specify this, pbmtoepson selects adjacent dot printing unless that is in‐\ncompatible with your other options.\n\nThis option was new in Netpbm 10.23 (July 2004).\n\n\n\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "pbmtoescp2(1), pbm(1),\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Copyright (C) 1991 by John Tiller (tiller@galois.msfc.nasa.gov) and Jef Poskanzer.\n",
            "subsections": []
        },
        "DOCUMENT SOURCE": {
            "content": "This  manual  page  was  generated by the Netpbm tool 'makeman' from HTML source.  The master\ndocumentation is at\n\nhttp://netpbm.sourceforge.net/doc/pbmtoepson.html\n\nnetpbm documentation                       08 August 2003                  Pbmtoepson User Manual(1)",
            "subsections": []
        }
    },
    "summary": "pbmtoepson - convert a PBM image into Epson printer graphics",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "This determines which Epson printer protocol the output uses. escp9 is the older ESC/P 9-pin protocol. escp is the newer ESC/P protocol. For the even newer ESC/P2 protocol, you have to use pbmtoescp2 instead. This option was new in Netpbm 10.23 (July 2004)."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "only certain values: 60, 72, 80, 90, 120, 144, and 240. Actually, the ESC/P protocol allows a few others, but pbmtoepson doesn't know how to generate the command streams that use them. If you don't specify this, pbmtoepson chooses a horizontal print density for you con‐ sistent with your other options. This option was new in Netpbm 10.23 (July 2004)."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "These options determine whether the output uses \"adjacent dot printing\" or not, what‐ ever that is. If you don't specify this, pbmtoepson selects adjacent dot printing unless that is in‐ compatible with your other options. This option was new in Netpbm 10.23 (July 2004)."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "pbmtoescp2",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pbmtoescp2/1/json"
        },
        {
            "name": "pbm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pbm/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Convert a PBM image to an Epson printer graphic.",
        "examples": [
            {
                "description": "Convert a PBM image to an Epson printer graphic",
                "command": "pbmtoepson {{path/to/image.pbm}} > {{path/to/output.epson}}"
            },
            {
                "description": "Specify the printer protocol of the output",
                "command": "pbmtoepson {{-pr|-protocol}} {{escp9|escp}} {{path/to/image.pbm}} > {{path/to/output.epson}}"
            },
            {
                "description": "Specify the horizontal DPI of the output",
                "command": "pbmtoepson {{-d|-dpi}} {{60|72|80|90|120|144|240}} {{path/to/image.pbm}} > {{path/to/output.epson}}"
            }
        ]
    }
}