pstopnm

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

Install

All systems
curl cmd.cat/pstopnm.sh
Debian Debian
apt-get install netpbm
Ubuntu
apt-get install netpbm
Arch Arch Linux
pacman -S netpbm
image/svg+xml Kali Linux
apt-get install netpbm
CentOS
yum install netpbm-progs
Fedora
dnf install netpbm-progs
Windows (WSL2)
sudo apt-get update sudo apt-get install netpbm
OS X
brew install netpbm
Raspbian
apt-get install netpbm

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

  • Convert a PS file to PNM images, storing page N of the input to `path/to/fileN.ppm`:
    pstopnm path/to/file.ps
  • Explicitly specify the output format:
    pstopnm -pbm|pgm|ppm path/to/file.ps
  • Specify the resolution of the output in dots per inch:
    pstopnm -dpi n path/to/file.ps

© tl;dr; authors and contributors