# psidtopgm - convert PostScript "image" data to a PGM image - man - [phpMan]

> **TLDR:** Convert PostScript image data to a PGM image.
>
- Convert the image data in a PS file to a PGM image of the specified dimensions and quality:
  `psidtopgm {{width}} {{height}} {{bits_per_sample}} {{path/to/file.ps}} > {{path/to/image.pgm}}`

*Source: tldr-pages*

---

_Psidtopgm_ _User_ [_Manual_(1)](https://www.chedong.com/phpMan.php/man/Manual/1/markdown)               General Commands Manual              _Psidtopgm_ _User_ [_Manual_(1)](https://www.chedong.com/phpMan.php/man/Manual/1/markdown)

## NAME
       psidtopgm - convert PostScript "image" data to a PGM image


## SYNOPSIS
       **psidtopgm _**width_ _height_ _bits/sample_ [_imagedata_]


## DESCRIPTION
       This program is part of [**Netpbm**(1)](https://www.chedong.com/phpMan.php/man/Netpbm/1/markdown).

       **psidtopgm  **reads the "image" data from a PostScript file as input and produces a PGM image as
       output.

       This program is obsoleted by **pstopnm**.

       What follows was written before **pstopnm  **existed.

       This is a very simple and limited program, and is here only because so many people have asked
       for it.  To use it you have to _manually_ extract the  readhexstring  data  portion  from  your
       PostScript  file,  and then give the width, height, and bits/sample on the command line.  Be‐
       fore you attempt this, you should _at_ _least_ read the description of the  "image"  operator  in
       the PostScript Language Reference Manual.

       It  would probably not be too hard to write a script that uses this filter to read a specific
       variety of PostScript image, but the variation is too great to make a general-purpose reader.
       Unless, of course, you want to write a full-fledged PostScript interpreter...


## OPTIONS
       There are no command line options defined specifically for **psidtopgm**, but it  recognizes  the
       options common to all programs based on libnetpbm (See [ Common Options](index.html#commonoptions) .)


## SEE ALSO
       [**pnmtops**(1)](https://www.chedong.com/phpMan.php/man/pnmtops/1/markdown), [**pgm**(1)](https://www.chedong.com/phpMan.php/man/pgm/1/markdown)


## AUTHOR
       Copyright (C) 1989 by Jef Poskanzer.

## DOCUMENT SOURCE
       This  manual  page  was  generated by the Netpbm tool 'makeman' from HTML source.  The master
       documentation is at

              **<http://netpbm.sourceforge.net/doc/psidtopgm.html>**

netpbm documentation                        02 August 89                    _Psidtopgm_ _User_ [_Manual_(1)](https://www.chedong.com/phpMan.php/man/Manual/1/markdown)
