LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pstopnm

Convert PostScript and PDF to PNM format

TLDR

Convert PostScript to PNM
$ pstopnm [input.ps]
copy
Convert with resolution
$ pstopnm -dpi [300] [input.ps]
copy
Convert to specific format
$ pstopnm -ppm [input.ps]
copy
Convert PDF
$ pstopnm [input.pdf]
copy

SYNOPSIS

pstopnm [options] file

DESCRIPTION

pstopnm converts PostScript and PDF files to PNM format. Uses Ghostscript for rendering. Part of Netpbm toolkit for document conversion.

PARAMETERS

-dpi n

Output resolution.
-xsize n
Output width.
-ysize n
Output height.
-ppm
Force PPM output.
-pgm
Force PGM output.
-pbm
Force PBM output.
-stdout
Write to stdout.

INSTALL

sudo apt install netpbm
copy
sudo dnf install netpbm
copy
sudo pacman -S netpbm
copy
sudo apk add netpbm
copy
sudo zypper install netpbm
copy
brew install netpbm
copy
nix profile install nixpkgs#netpbm
copy

SEE ALSO

gs(1), pnmtops(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid