Command-line tool
ghostscript
brew/ghostscript
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Interpreter for PostScript and PDF
At a glance
- Type
- Command-line tool
- Install on
- macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install ghostscript
Linux
brew install ghostscript
View a file
gs -dQUIET -dBATCH file.pdf
Reduce PDF file size to 150 dpi images for reading on an e-book device
gs -dNOPAUSE -dQUIET -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -sOutputFile=output.pdf input.pdf
Convert PDF file (pages 1 through 3) to an image with 150 dpi resolution
gs -dQUIET -dBATCH -dNOPAUSE -sDEVICE=jpeg -r150 -dFirstPage=1 -dLastPage=3 -sOutputFile=output_%d.jpg input.pdf
Browse
Related command-line tools
- enscript
Convert text to Postscript, HTML, or RTF, with syntax highlighting - htmldoc
Convert HTML to PDF or PostScript - paps
Pango to PostScript converter - pcal
Generate Postscript calendars without X - ps2eps
Convert PostScript to EPS files - poster
Create large posters out of PostScript pages - ttf2pt1
True Type Font to Postscript Type 1 converter - a2ps
Any-to-PostScript filter
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents