LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ps2ps

Optimize and normalize PostScript files

TLDR

Optimize PostScript file
$ ps2ps [input.ps] [output.ps]
copy
Convert with specific options
$ ps2ps -dSAFER [input.ps] [output.ps]
copy

SYNOPSIS

ps2ps [options] input output

DESCRIPTION

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.

PARAMETERS

INPUT

Input PostScript file.
OUTPUT
Output PostScript file.
-dSAFER
Safer mode.

INSTALL

sudo apt install ghostscript
copy
sudo dnf install ghostscript
copy
sudo pacman -S ghostscript
copy
sudo apk add ghostscript
copy
sudo zypper install ghostscript
copy
brew install ghostscript
copy
nix profile install nixpkgs#ghostscript
copy

CAVEATS

Part of Ghostscript suite. May alter formatting.

HISTORY

ps2ps is part of Ghostscript for PostScript optimization.

SEE ALSO

gs(1), ps2pdf(1), ps2epsi(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid