{
    "mode": "man",
    "parameter": "ppmtopj",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/ppmtopj/1/json",
    "generated": "2026-06-16T04:20:19Z",
    "synopsis": "ppmtopj  [-gamma  val]  [-xpos  val]  [-ypos val] [-back dark|lite] [-rle] [-center] [-render\nnone|snap|bw|dither|diffuse|monodither|monodiffuse|clusterdither|monoclusterdither] [ppmfile]",
    "sections": {
        "NAME": {
            "content": "ppmtopj - convert a portable pixmap to an HP PaintJet file\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ppmtopj  [-gamma  val]  [-xpos  val]  [-ypos val] [-back dark|lite] [-rle] [-center] [-render\nnone|snap|bw|dither|diffuse|monodither|monodiffuse|clusterdither|monoclusterdither] [ppmfile]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Reads a portable pixmap as input and converts it into a format suitable to be printed  by  an\nHP PaintJet printer.\n\nFor  best results, the input file should be in 8-color RGB form; i.e. it should have only the\n8 binary combinations of full-on and full-off primaries.  You could get this by  sending  the\ninput file through ppmquant -map with a map file such as:\nP3\n8 1\n255\n0 0 0      255 0 0    0 255 0    0 0 255\n255 255 0  255 0 255  0 255 255  255 255 255\nOr else you could use use ppmdither -red 2 -green 2 -blue 2.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-rle",
                    "content": ""
                },
                {
                    "name": "-back",
                    "content": "pated to the foreground.\n"
                },
                {
                    "name": "-render",
                    "content": ""
                },
                {
                    "name": "-gamma",
                    "content": ""
                },
                {
                    "name": "-center",
                    "content": ""
                },
                {
                    "name": "-xpos",
                    "content": ""
                },
                {
                    "name": "-ypos",
                    "content": ""
                }
            ]
        },
        "REFERENCES": {
            "content": "HP PaintJet XL Color Graphics Printer User's Guide\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pnmdepth(1), ppmquant(1), ppmdither(1), ppm(5)\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Most of the options have not been tested because of the price of the paper.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Copyright (C) 1991 by Christos Zoulas.\n\n\n\n13 July 1991                                  ppmtopj(1)",
            "subsections": []
        }
    },
    "summary": "ppmtopj - convert a portable pixmap to an HP PaintJet file",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "pated to the foreground."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": ""
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "pnmdepth",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pnmdepth/1/json"
        },
        {
            "name": "ppmquant",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ppmquant/1/json"
        },
        {
            "name": "ppmdither",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ppmdither/1/json"
        },
        {
            "name": "ppm",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/ppm/5/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Convert a PPM file to an HP PaintJet file.",
        "examples": [
            {
                "description": "Convert a PPM file to an HP PaintJet file",
                "command": "ppmtopj {{path/to/input.ppm}} > {{path/to/output.pj}}"
            },
            {
                "description": "Move the image in the x and y direction",
                "command": "ppmtopj {{-x|-xpos}} {{dx}} {{-y|-ypos}} {{dy}} {{path/to/input.ppm}} > {{path/to/output.pj}}"
            },
            {
                "description": "Explicitly specify a gamma value",
                "command": "ppmtopj {{-g|-gamma}} {{gamma}} {{path/to/input.ppm}} > {{path/to/output.pj}}"
            }
        ]
    }
}