{
    "mode": "man",
    "parameter": "psidtopgm",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/man/psidtopgm/json",
    "generated": "2026-10-25T20:28:28Z",
    "synopsis": "psidtopgm width height bits/sample [imagedata]",
    "sections": {
        "NAME": {
            "content": "psidtopgm - convert PostScript \"image\" data to a PGM image\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "psidtopgm width height bits/sample [imagedata]\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This program is part of Netpbm(1).\n\npsidtopgm  reads the \"image\" data from a PostScript file as input and produces a PGM image as\noutput.\n\nThis program is obsoleted by pstopnm.\n\nWhat follows was written before pstopnm  existed.\n\nThis is a very simple and limited program, and is here only because so many people have asked\nfor it.  To use it you have to manually extract the  readhexstring  data  portion  from  your\nPostScript  file,  and then give the width, height, and bits/sample on the command line.  Be‐\nfore you attempt this, you should at least read the description of the  \"image\"  operator  in\nthe PostScript Language Reference Manual.\n\nIt  would probably not be too hard to write a script that uses this filter to read a specific\nvariety of PostScript image, but the variation is too great to make a general-purpose reader.\nUnless, of course, you want to write a full-fledged PostScript interpreter...\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "There are no command line options defined specifically for psidtopgm, but it  recognizes  the\noptions common to all programs based on libnetpbm (See  Common Options .)\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pnmtops(1), pgm(1)\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Copyright (C) 1989 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/psidtopgm.html\n\nnetpbm documentation                        02 August 89                    Psidtopgm User Manual(1)",
            "subsections": []
        }
    },
    "summary": "psidtopgm - convert PostScript \"image\" data to a PGM image",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "pnmtops",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pnmtops/1/json"
        },
        {
            "name": "pgm",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/pgm/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Convert PostScript image data to a PGM image.",
        "examples": [
            {
                "description": "Convert the image data in a PS file to a PGM image of the specified dimensions and quality",
                "command": "psidtopgm {{width}} {{height}} {{bits_per_sample}} {{path/to/file.ps}} > {{path/to/image.pgm}}"
            }
        ]
    }
}