{
    "content": [
        {
            "type": "text",
            "text": "# xwdtopnm (man)\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\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## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **BUGS**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "xwdtopnm",
        "section": "",
        "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": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "xwdtopnm - convert a X11 or X10 window dump file into a portable anymap\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "xwdtopnm [xwdfile]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Reads  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",
                "subsections": []
            },
            "BUGS": {
                "content": "I haven't tested this tool with very many configurations, so there are probably bugs.  Please\nlet me know if you find any.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "pnmtoxwd(1), pnm(5), xwd(1)\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Copyright (C) 1989, 1991 by Jef Poskanzer.\n\n\n\n11 January 1991                               xwdtopnm(1)",
                "subsections": []
            }
        }
    }
}