{
    "content": [
        {
            "type": "text",
            "text": "# ppmtopj (man)\n\n## NAME\n\nppmtopj - convert a portable pixmap to an HP PaintJet file\n\n## SYNOPSIS\n\nppmtopj  [-gamma  val]  [-xpos  val]  [-ypos val] [-back dark|lite] [-rle] [-center] [-render\nnone|snap|bw|dither|diffuse|monodither|monodiffuse|clusterdither|monoclusterdither] [ppmfile]\n\n## DESCRIPTION\n\nReads a portable pixmap as input and converts it into a format suitable to be printed  by  an\nHP PaintJet printer.\n\n## TLDR\n\n> Convert a PPM file to an HP PaintJet file.\n\n- Convert a PPM file to an HP PaintJet file:\n  `ppmtopj {{path/to/input.ppm}} > {{path/to/output.pj}}`\n- Move the image in the x and y direction:\n  `ppmtopj {{-x|-xpos}} {{dx}} {{-y|-ypos}} {{dy}} {{path/to/input.ppm}} > {{path/to/output.pj}}`\n- Explicitly specify a gamma value:\n  `ppmtopj {{-g|-gamma}} {{gamma}} {{path/to/input.ppm}} > {{path/to/output.pj}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (7 subsections)\n- **REFERENCES**\n- **SEE ALSO**\n- **BUGS**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "ppmtopj",
        "section": "",
        "mode": "man",
        "summary": "ppmtopj - convert a portable pixmap to an HP PaintJet file",
        "synopsis": "ppmtopj  [-gamma  val]  [-xpos  val]  [-ypos val] [-back dark|lite] [-rle] [-center] [-render\nnone|snap|bw|dither|diffuse|monodither|monodiffuse|clusterdither|monoclusterdither] [ppmfile]",
        "tldr_summary": "Convert a PPM file to an HP PaintJet file.",
        "tldr_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}}"
            }
        ],
        "tldr_source": "official",
        "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"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-rle",
                        "lines": 1
                    },
                    {
                        "name": "-back",
                        "lines": 2
                    },
                    {
                        "name": "-render",
                        "lines": 1
                    },
                    {
                        "name": "-gamma",
                        "lines": 1
                    },
                    {
                        "name": "-center",
                        "lines": 1
                    },
                    {
                        "name": "-xpos",
                        "lines": 1
                    },
                    {
                        "name": "-ypos",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "REFERENCES",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}