LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ps2pdf

Convert PostScript files to PDF format

TLDR

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

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

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)

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