ps2pdf

Convert PostScript files to PDF format

TLDR

Convert PS to PDF
$ ps2pdf [input.ps] [output.pdf]
Convert with quality settings
$ ps2pdf -dPDFSETTINGS=/prepress [input.ps] [output.pdf]
Convert for screen viewing
$ ps2pdf -dPDFSETTINGS=/screen [input.ps] [output.pdf]
Convert EPS to PDF
$ ps2pdf [input.eps] [output.pdf]

SYNOPSIS

ps2pdf [options] input.ps [output.pdf]

DESCRIPTION

ps2pdf converts PostScript files to PDF format using Ghostscript. It's a convenient wrapper around gs (Ghostscript) with PDF output options.The tool is commonly used in document processing pipelines and print workflows.

PARAMETERS

-dPDFSETTINGS= setting

Quality preset:
- /screen: Low resolution
- /ebook: Medium resolution
- /printer: High resolution
- /prepress: Maximum resolution
-dCompatibilityLevel= level
PDF version (1.3, 1.4, 1.5, etc.).
-dEmbedAllFonts= bool
Embed all fonts.
-dSubsetFonts= bool
Subset embedded fonts.
-sPAPERSIZE= size
Paper size (a4, letter, etc.).

INSTALL

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

CAVEATS

Output quality depends on input. Font embedding may increase size. Some PS features may not convert. Ghostscript must be installed.

HISTORY

ps2pdf is part of Ghostscript, originally created by L. Peter Deutsch in 1988. Ghostscript provides PostScript and PDF interpretation, making ps2pdf a standard conversion tool.

SEE ALSO

gs(1), pdf2ps(1), epstopdf(1), pdflatex(1)