← 返回命令列表

Linux command

ps2ps 命令

文本

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

常用示例

Optimize PostScript file

ps2ps [input.ps] [output.ps]

Convert with specific options

ps2ps -dSAFER [input.ps] [output.ps]

说明

ps2ps optimizes and normalizes PostScript files by reading them through the Ghostscript interpreter and rewriting the output as clean, canonical PostScript. This process can reduce file size, resolve compatibility issues, and simplify complex PostScript code for use with printers or other tools that struggle with the original. The tool is part of the Ghostscript suite and is essentially a wrapper around gs with PostScript output enabled. If no output filename is given, the result is written to stdout.

参数

-dSAFER
Safer mode.

FAQ

What is the ps2ps command used for?

ps2ps optimizes and normalizes PostScript files by reading them through the Ghostscript interpreter and rewriting the output as clean, canonical PostScript. This process can reduce file size, resolve compatibility issues, and simplify complex PostScript code for use with printers or other tools that struggle with the original. The tool is part of the Ghostscript suite and is essentially a wrapper around gs with PostScript output enabled. If no output filename is given, the result is written to stdout.

How do I run a basic ps2ps example?

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

What does -dSAFER do in ps2ps?

Safer mode.