pstopnm

Convert a PostScript file to a PNM image. More information: https://netpbm.sourceforge.net/doc/pstopnm.html.

pstopnm path/to/file.ps

pstopnm -pbm|pgm|ppm path/to/file.ps

pstopnm -dpi n path/to/file.ps