LinuxCommandLibrary

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.

SEE ALSO

gs(1), pnmtops(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community