{
    "mode": "man",
    "parameter": "pbmtolj",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/pbmtolj/1/json",
    "generated": "2026-06-03T00:21:51Z",
    "synopsis": "pbmtolj  [-resolution  N]  [-float]  [-noreset]  [-packbits]  [-delta]  [-compress] [pbmfile]\n[-copies N]",
    "sections": {
        "NAME": {
            "content": "pbmtolj - convert a portable bitmap into HP LaserJet format\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "pbmtolj  [-resolution  N]  [-float]  [-noreset]  [-packbits]  [-delta]  [-compress] [pbmfile]\n[-copies N]\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Reads a PBM image as input.  Produces HP LaserJet data as output.\n\nNote that there is no ljtopbm tool.\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-resolution",
                    "content": "Specifies the resolution of the output device, in dpi.  Typical values  are  75,  100,\n150, 300, and 600.  The default is 75.\n"
                },
                {
                    "name": "-float",
                    "content": "to the output file.\n"
                },
                {
                    "name": "-noreset",
                    "content": "Prevents pbmtolj from writing the reset sequences to the beginning and end of the out‐\nput file.\n"
                },
                {
                    "name": "-packbits",
                    "content": "Enables use of TIFF packbits compression.\n"
                },
                {
                    "name": "-delta",
                    "content": ""
                },
                {
                    "name": "-compress",
                    "content": "Enables use of both TIFF packbits, and delta-between-rows compression.\n"
                },
                {
                    "name": "-copies",
                    "content": "Specifies  the the number of copies. The default is 1.  This option controls the \"num‐\nber of copies\" printer control; pbmtolj generates only one copy of the image.\n\nAll flags can be abbreviated to their shortest unique prefix.\n\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "pbm(5)\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Copyright (C) 1988 by Jef Poskanzer and Michael Haberler.  -float and -noreset options  added\nby Wim Lewis.  -delta, -packbits, and -compress options added by Dave Platt.\n\n\n\n22 April 2000                                 pbmtolj(1)",
            "subsections": []
        }
    },
    "summary": "pbmtolj - convert a portable bitmap into HP LaserJet format",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Specifies the resolution of the output device, in dpi. Typical values are 75, 100, 150, 300, and 600. The default is 75."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "to the output file."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Prevents pbmtolj from writing the reset sequences to the beginning and end of the out‐ put file."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Enables use of TIFF packbits compression."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Enables use of both TIFF packbits, and delta-between-rows compression."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "Specifies the the number of copies. The default is 1. This option controls the \"num‐ ber of copies\" printer control; pbmtolj generates only one copy of the image. All flags can be abbreviated to their shortest unique prefix."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "pbm",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/pbm/5/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Convert a PBM file to an HP LaserJet file.",
        "examples": [
            {
                "description": "Convert a PBM file to an HP LaserJet file",
                "command": "pbmtolj {{path/to/input.pbm}} > {{path/to/output.lj}}"
            },
            {
                "description": "Compress the output file using the specified method",
                "command": "pbmtolj -{{packbits|delta|compress}} {{path/to/input.pbm}} > {{path/to/output.lj}}"
            },
            {
                "description": "Specify the required resolution",
                "command": "pbmtolj {{-r|-resolution}} {{75|100|150|300|600}} {{path/to/input.pbm}} > {{path/to/output.lj}}"
            }
        ]
    }
}