man > psidtopgm(1)

⚡ TLDR: psidtopgm (tldr-pages)

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}}
Psidtopgm User Manual(1)               General Commands Manual              Psidtopgm User Manual(1)

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).

       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 .)


SEE ALSO
       pnmtops(1), pgm(1)


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)

Generated by phpman v4.12.13 · Markdown · JSON Author: Che Dong Under GNU General Public License
2026-10-22 04:48 @216.73.216.226
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!