{
    "content": [
        {
            "type": "text",
            "text": "# pnmtorast (man)\n\n## NAME\n\npnmtorast - convert a PPM into a Sun rasterfile\n\n## SYNOPSIS\n\npnmtorast [-standard|-rle] [pnmfile]\n\n## DESCRIPTION\n\nThis program is part of Netpbm(1).\n\n## TLDR\n\n> Convert a PNM file to a Sun rasterfile.\n\n- Convert a PNM image to a RAST image:\n  `pnmtorast {{path/to/input.pnm}} > {{path/to/output.rast}}`\n- Force either `RT_STANDARD` or `RT_BYTE_ENCODED` form for the output:\n  `pnmtorast -{{standard|rle}} {{path/to/input.pnm}} > {{path/to/output.rast}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\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": "pnmtorast",
        "section": "",
        "mode": "man",
        "summary": "pnmtorast - convert a PPM into a Sun rasterfile",
        "synopsis": "pnmtorast [-standard|-rle] [pnmfile]",
        "tldr_summary": "Convert a PNM file to a Sun rasterfile.",
        "tldr_examples": [
            {
                "description": "Convert a PNM image to a RAST image",
                "command": "pnmtorast {{path/to/input.pnm}} > {{path/to/output.rast}}"
            },
            {
                "description": "Force either `RT_STANDARD` or `RT_BYTE_ENCODED` form for the output",
                "command": "pnmtorast -{{standard|rle}} {{path/to/input.pnm}} > {{path/to/output.rast}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Forces the result to be in RTSTANDARD form."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Forces the result to be in RTBYTEENCODED, which is smaller but, well, less standard. The default is -rle."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "rasttopnm",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/rasttopnm/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": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 7,
                "subsections": [
                    {
                        "name": "-standard",
                        "lines": 3
                    },
                    {
                        "name": "-rle",
                        "lines": 7
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DOCUMENT SOURCE",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pnmtorast - convert a PPM into a Sun rasterfile\n\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "pnmtorast [-standard|-rle] [pnmfile]\n\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This program is part of Netpbm(1).\n\npnmtorastreads a PPM image as input and produces a Sun rasterfile as output.\n\nColor  values  in  Sun rasterfiles are eight bits wide, so pnmtorast will automatically scale\ncolors to have a maxval of 255.  An extra pamdepth step is not necessary.\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\\ ), pnmtorast recognizes the following command line options:\n\nAll options can be abbreviated to their shortest unique prefix.\n\n\n",
                "subsections": [
                    {
                        "name": "-standard",
                        "content": "Forces the result to be in RTSTANDARD form.\n\n"
                    },
                    {
                        "name": "-rle",
                        "content": "Forces the result to be in RTBYTEENCODED, which is smaller but, well, less standard.\n\nThe default is -rle.\n\n\n\n"
                    }
                ]
            },
            "SEE ALSO": {
                "content": "rasttopnm(1), pnm(1)\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/pnmtorast.html\n\nnetpbm documentation                       12 January 1991                  Pnmtorast User Manual(1)",
                "subsections": []
            }
        }
    }
}