{
    "content": [
        {
            "type": "text",
            "text": "# pnmtoxwd (man)\n\n## NAME\n\npnmtoxwd - convert a PNM into an X11 window dump\n\n## DESCRIPTION\n\nThis program is part of Netpbm(1).\n\n## TLDR\n\n> Convert a PNM file into an X11 window dump file.\n\n- Convert a PNM image file to XWD:\n  `pnmtoxwd {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}`\n- Produce the output in the DirectColor format:\n  `pnmtoxwd {{-d|-directcolor}} {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}`\n- Set the color depth of the output to b bits:\n  `pnmtoxwd {{-ps|-pseudodepth}} {{b}} {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS** (1 subsections)\n- **DESCRIPTION**\n- **OPTIONS** (2 subsections)\n- **SEE ALSO**\n- **AUTHOR**\n- **DOCUMENT SOURCE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pnmtoxwd",
        "section": "",
        "mode": "man",
        "summary": "pnmtoxwd - convert a PNM into an X11 window dump",
        "synopsis": "",
        "tldr_summary": "Convert a PNM file into an X11 window dump file.",
        "tldr_examples": [
            {
                "description": "Convert a PNM image file to XWD",
                "command": "pnmtoxwd {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}"
            },
            {
                "description": "Produce the output in the DirectColor format",
                "command": "pnmtoxwd {{-d|-directcolor}} {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}"
            },
            {
                "description": "Set the color depth of the output to b bits",
                "command": "pnmtoxwd {{-ps|-pseudodepth}} {{b}} {{path/to/input_file.pnm}} > {{path/to/output_file.xwd}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Output in DirectColor format."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Set the depth of PseudoColor dump in bits. Values between 1 to 16 are accepted. De‐ fault is 8 (for a maximum of 256 colors.)"
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "xwdtopnm",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/xwdtopnm/1/json"
            },
            {
                "name": "pnm",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pnm/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "pnmtoxwd",
                        "lines": 7
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 5,
                "subsections": [
                    {
                        "name": "-directcolor",
                        "lines": 3
                    },
                    {
                        "name": "-pseudodepth _",
                        "lines": 6
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DOCUMENT SOURCE",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pnmtoxwd - convert a PNM into an X11 window dump\n\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "",
                "subsections": [
                    {
                        "name": "pnmtoxwd",
                        "content": "[-pseudodepth n]\n\n[-directcolor]\n\n[pnmfile]\n\n"
                    }
                ]
            },
            "DESCRIPTION": {
                "content": "This program is part of Netpbm(1).\n\npnmtoxwd  reads a PNM image as input and produces an X11 window dump as output.  You can dis‐\nplay this output with xwud.\n\nNormally, pnmtoxwd produces a StaticGray dump file for PBM and PGM files.  For PPM, it writes\na PseudoColor dump file if there are up to 256 colors in the input, and  a  DirectColor  dump\nfile otherwise.\n\nIn  an  X11  window dump file, various integers can be represented in either big endian (most\nsignificant byte first) or little endian code.  Those generated by pnmtoxwd  are  always  big\nendian.\n\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "In  addition  to  the options common to all programs based on libnetpbm (most notably -quiet,\nsee \u001b]8;;index.html#commonoptions\u001b\\ Common Options\u001b]8;;\u001b\\ ), pnmtoxwd recognizes the following command line options:\n\n\n",
                "subsections": [
                    {
                        "name": "-directcolor",
                        "content": "Output in DirectColor format.\n\n"
                    },
                    {
                        "name": "-pseudodepth _",
                        "content": "Set the depth of PseudoColor dump in bits.  Values between 1 to 16 are accepted.   De‐\nfault is 8 (for a maximum of 256 colors.)\n\n\n\n"
                    }
                ]
            },
            "SEE ALSO": {
                "content": "xwdtopnm(1), pnm(1), xwud\n\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Copyright (C) 1989, 1991 by 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/pnmtoxwd.html\n\nnetpbm documentation                      24 September 1991                  Pnmtoxwd User Manual(1)",
                "subsections": []
            }
        }
    }
}