Convert a PostScript file to a PNM image. More information: https://netpbm.sourceforge.net/doc/pstopnm.html.
path/to/fileN.ppm
pstopnm path/to/file.ps
pstopnm -pbm|pgm|ppm path/to/file.ps
pstopnm -dpi n path/to/file.ps