← 返回命令列表

Linux command

pstopnm 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Convert PostScript to PNM

pstopnm [input.ps]

Convert with resolution

pstopnm -dpi [300] [input.ps]

Convert to specific format

pstopnm -ppm [input.ps]

Convert PDF

pstopnm [input.pdf]

说明

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

参数

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

FAQ

What is the pstopnm command used for?

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

How do I run a basic pstopnm example?

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

What does -dpi _n_ do in pstopnm?

Output resolution.