LinuxCommandLibrary

pnmtops

Convert PNM images to PostScript

TLDR

Convert PNM to PostScript

$ pnmtops [input.pnm] > [output.ps]
copy
Create EPS file
$ pnmtops -nocenter -noturn -nosetpage [input.pnm] > [output.eps]
copy
Convert with specific DPI
$ pnmtops -dpi [300] [input.pnm] > [output.ps]
copy
Scale to fit page
$ pnmtops -scale [0.5] [input.pnm] > [output.ps]
copy

SYNOPSIS

pnmtops [options] [file]

DESCRIPTION

pnmtops converts PNM images to PostScript format, suitable for printing or embedding in documents. The output can be either a full-page PostScript document or an Encapsulated PostScript (EPS) file.
The -dpi and -scale options control the output size, while -width and -height set maximum dimensions. Use -nocenter, -noturn, and -nosetpage together to create minimal EPS suitable for inclusion in other documents. Part of the Netpbm toolkit.

PARAMETERS

-dpi n

Image resolution.
-scale factor
Scale factor.
-width inches
Maximum width.
-height inches
Maximum height.
-nocenter
Don't center on page.
-noturn
Don't rotate.
-nosetpage
Don't set page size.

SEE ALSO

pstopnm(1), pnmtopng(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community