← 返回命令列表

Linux command

pnmtops 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Convert PNM to PostScript

pnmtops [input.pnm] > [output.ps]

Create EPS file

pnmtops -nocenter -noturn -nosetpage [input.pnm] > [output.eps]

Convert with specific DPI

pnmtops -dpi [300] [input.pnm] > [output.ps]

Scale to fit page

pnmtops -scale [0.5] [input.pnm] > [output.ps]

说明

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.

参数

-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.

FAQ

What is the pnmtops command used for?

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.

How do I run a basic pnmtops example?

Run `pnmtops [input.pnm] > [output.ps]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -dpi _n_ do in pnmtops?

Image resolution.