{
    "content": [
        {
            "type": "text",
            "text": "# pcxtoppm (man)\n\n## NAME\n\npcxtoppm - convert a PCX file into a portable pixmap\n\n## SYNOPSIS\n\npcxtoppm [-stdpalette] [-verbose] [pcxfile]\n\n## DESCRIPTION\n\nReads a PCX file as input.  Produces a portable pixmap as output.  Supported PCX types are:\n\n## TLDR\n\n> Convert a PCX file to a PPM image.\n\n- Convert a PCX file to a PPM image:\n  `pcxtoppm {{path/to/file.pcx}} > {{path/to/file.ppm}}`\n- Use a predefined standard palette even if the PCX file provides one:\n  `pcxtoppm {{-s|-stdpalette}} {{path/to/file.pcx}} > {{path/to/file.ppm}}`\n- Print information on the PCX header to `stdout`:\n  `pcxtoppm {{-verb|-verbose}} {{path/to/file.pcx}} > {{path/to/file.ppm}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (1 subsections)\n- **SEE ALSO**\n- **AUTHORS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pcxtoppm",
        "section": "",
        "mode": "man",
        "summary": "pcxtoppm - convert a PCX file into a portable pixmap",
        "synopsis": "pcxtoppm [-stdpalette] [-verbose] [pcxfile]",
        "tldr_summary": "Convert a PCX file to a PPM image.",
        "tldr_examples": [
            {
                "description": "Convert a PCX file to a PPM image",
                "command": "pcxtoppm {{path/to/file.pcx}} > {{path/to/file.ppm}}"
            },
            {
                "description": "Use a predefined standard palette even if the PCX file provides one",
                "command": "pcxtoppm {{-s|-stdpalette}} {{path/to/file.pcx}} > {{path/to/file.ppm}}"
            },
            {
                "description": "Print information on the PCX header to `stdout`",
                "command": "pcxtoppm {{-verb|-verbose}} {{path/to/file.pcx}} > {{path/to/file.ppm}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Enforce the use of the internal colormap for files with 16 colors or less."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "ppmtopcx",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ppmtopcx/1/json"
            },
            {
                "name": "ppm",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/ppm/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-stdpalette",
                        "lines": 3
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 7,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pcxtoppm - convert a PCX file into a portable pixmap\n\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "pcxtoppm [-stdpalette] [-verbose] [pcxfile]\n\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Reads a PCX file as input.  Produces a portable pixmap as output.  Supported PCX types are:\n\nColormapped files with 2-16 colors.\n\"Packed pixel\" format (1, 2 or 4 bits/pixel, 1 plane) or bitplane format (1 bit/pixel,\n1-4 planes).  The program checks the colormap and uses an internal one if the provided\ncolormap is completely black.\n\nColormapped files with 256 colors\n8 bits/pixel, 1 plane, colormap at the end of the file.\n\n24bit truecolor files\n24bit RGB: 8 bits/pixel, 3 planes.\n\n32bit truecolor files\n24bit RGB + 8bit intensity: 8 bits/pixel, 4 planes.\n\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-stdpalette",
                        "content": "Enforce the use of the internal colormap for files with 16 colors or less.\n\n"
                    }
                ]
            },
            "SEE ALSO": {
                "content": "ppmtopcx(1), ppm(5)\n\n",
                "subsections": []
            },
            "AUTHORS": {
                "content": "Copyright (C) 1990 by Michael Davidson.\nModified 1994 by Ingo Wilken (Ingo.Wilken@informatik.uni-oldenburg.de)\n\n\n\n\n9 April 1990                                 pcxtoppm(1)",
                "subsections": []
            }
        }
    }
}