{
    "content": [
        {
            "type": "text",
            "text": "# grap2graph(1) (man)\n\n**Summary:** grap2graph - convert a GRAP diagram into a cropped image\n\n**Synopsis:** grap2graph [-unsafe] [-format output-format] [convert-arguments]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| — | — | — | Write the image in output-format, which must be understood by convert; the default is PNG. --help Display a usage messag |\n| — | — | — | Run groff in unsafe mode, enabling the PIC command sh to execute arbitrary Unix shell commands. The groff default is to  |\n| -v | — | — |  |\n| — | --version | — | Display version information and exit. |\n\n## See Also\n\n- pic2graph(1)\n- eqn2graph(1)\n- grap(1)\n- pic(1)\n- groff(1)\n- convert(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines) — 3 subsections\n  - grap2graph --help (1 lines)\n  - grap2graph -v (1 lines)\n  - grap2graph --version (1 lines)\n- **DESCRIPTION** (13 lines)\n- **OPTIONS** (1 lines) — 4 subsections\n  - -format (5 lines)\n  - -unsafe (3 lines)\n  - -v (1 lines)\n  - --version (2 lines)\n- **ENVIRONMENT** (6 lines)\n- **AUTHORS** (3 lines)\n- **SEE ALSO** (5 lines)\n\n## Full Content\n\n### NAME\n\ngrap2graph - convert a GRAP diagram into a cropped image\n\n### SYNOPSIS\n\ngrap2graph [-unsafe] [-format output-format] [convert-arguments]\n\n#### grap2graph --help\n\n#### grap2graph -v\n\n#### grap2graph --version\n\n### DESCRIPTION\n\ngrap2graph  reads  a grap(1) program from the standard input and writes an image file, by de‐\nfault in Portable Network Graphics (PNG) format, to the standard output.\n\nThe input GRAP code should not be wrapped with the .G1 and .G2 macros that normally guard  it\nwithin groff(1) documents.\n\nArguments  not  recognized by grap2graph are passed to the ImageMagick or GraphicsMagick pro‐\ngram convert(1).  By specifying these, you can give your image  a  border,  set  the  image's\npixel density, or perform other useful transformations.\n\nThe  output  image  is clipped using convert's -trim option to the smallest possible bounding\nbox that contains all the black pixels.\n\n### OPTIONS\n\n#### -format\n\nWrite the image in output-format, which must be understood by convert; the default  is\nPNG.\n\n--help Display a usage message and exit.\n\n#### -unsafe\n\nRun  groff in unsafe mode, enabling the PIC command sh to execute arbitrary Unix shell\ncommands.  The groff default is to forbid this.\n\n#### -v\n\n#### --version\n\nDisplay version information and exit.\n\n### ENVIRONMENT\n\nGROFFTMPDIR\nTMPDIR\nTMP\nTEMP   These environment variables are searched in the given order to determine the directory\nwhere temporary files will be created.  If none are set, /tmp is used.\n\n### AUTHORS\n\ngrap2graph  was  written  by  Eric  S.  Raymond  ⟨esr@thyrsus.com⟩,  based  on  a  recipe for\npic2graph(1), by W. Richard Stevens.\n\n### SEE ALSO\n\npic2graph(1), eqn2graph(1), grap(1), pic(1), groff(1), convert(1)\n\n\n\ngroff 1.22.4                                23 March 2022                              GRAP2GRAPH(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "grap2graph",
        "section": "1",
        "mode": "man",
        "summary": "grap2graph - convert a GRAP diagram into a cropped image",
        "synopsis": "grap2graph [-unsafe] [-format output-format] [convert-arguments]",
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Write the image in output-format, which must be understood by convert; the default is PNG. --help Display a usage message and exit."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Run groff in unsafe mode, enabling the PIC command sh to execute arbitrary Unix shell commands. The groff default is to forbid this."
            },
            {
                "flag": "-v",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "Display version information and exit."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "pic2graph",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pic2graph/1/json"
            },
            {
                "name": "eqn2graph",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/eqn2graph/1/json"
            },
            {
                "name": "grap",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/grap/1/json"
            },
            {
                "name": "pic",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/pic/1/json"
            },
            {
                "name": "groff",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/groff/1/json"
            },
            {
                "name": "convert",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/convert/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": [
                    {
                        "name": "grap2graph --help",
                        "lines": 1
                    },
                    {
                        "name": "grap2graph -v",
                        "lines": 1
                    },
                    {
                        "name": "grap2graph --version",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-format",
                        "lines": 5
                    },
                    {
                        "name": "-unsafe",
                        "lines": 3
                    },
                    {
                        "name": "-v",
                        "lines": 1,
                        "flag": "-v"
                    },
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "ENVIRONMENT",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}