{
    "content": [
        {
            "type": "text",
            "text": "# xwdtopnm(1) (man)\n\n## TLDR\n\n> Convert an X11 or X10 window dump file to PNM.\n\n- Convert a XWD image file to PBM:\n  `xwdtopnm {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}`\n- Display information about the conversion process:\n  `xwdtopnm {{-verb|-verbose}} {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}`\n- Display the contents of the X11 header of the input file:\n  `xwdtopnm {{-h|-headerdump}} {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}`\n\n*Source: tldr-pages*\n\n---\n\n**Summary:** xwdtopnm - convert a X11 or X10 window dump file into a portable anymap\n\n**Synopsis:** xwdtopnm [xwdfile]\n\n## See Also\n\n- pnmtoxwd(1)\n- pnm(5)\n- xwd(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (9 lines)\n- **BUGS** (3 lines)\n- **SEE ALSO** (2 lines)\n- **AUTHOR** (5 lines)\n\n## Full Content\n\n### NAME\n\nxwdtopnm - convert a X11 or X10 window dump file into a portable anymap\n\n### SYNOPSIS\n\nxwdtopnm [xwdfile]\n\n### DESCRIPTION\n\nReads  a  X11  or  X10 window dump file as input.  Produces a portable anymap as output.  The\ntype of the output file depends on the input file - if it's black &  white,  a  pbm  file  is\nwritten,  else  if  it's  grayscale a pgm file, else a ppm file.  The program tells you which\ntype it is writing.\n\nUsing this program, you can convert anything on an X workstation's  screen  into  an  anymap.\nJust  display whatever you're interested in, do an xwd, run it through xwdtopnm, and then use\npnmcut to select the part you want.\n\n### BUGS\n\nI haven't tested this tool with very many configurations, so there are probably bugs.  Please\nlet me know if you find any.\n\n### SEE ALSO\n\npnmtoxwd(1), pnm(5), xwd(1)\n\n### AUTHOR\n\nCopyright (C) 1989, 1991 by Jef Poskanzer.\n\n\n\n11 January 1991                               xwdtopnm(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "xwdtopnm",
        "section": "1",
        "mode": "man",
        "summary": "xwdtopnm - convert a X11 or X10 window dump file into a portable anymap",
        "synopsis": "xwdtopnm [xwdfile]",
        "tldr_summary": "Convert an X11 or X10 window dump file to PNM.",
        "tldr_examples": [
            {
                "description": "Convert a XWD image file to PBM",
                "command": "xwdtopnm {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}"
            },
            {
                "description": "Display information about the conversion process",
                "command": "xwdtopnm {{-verb|-verbose}} {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}"
            },
            {
                "description": "Display the contents of the X11 header of the input file",
                "command": "xwdtopnm {{-h|-headerdump}} {{path/to/input_file.xwd}} > {{path/to/output_file.pnm}}"
            }
        ],
        "tldr_source": "official",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "pnmtoxwd",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pnmtoxwd/1/json"
            },
            {
                "name": "pnm",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/pnm/5/json"
            },
            {
                "name": "xwd",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/xwd/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}