ghostscript

Interpreter for PostScript and PDF files with rendering capabilities

brewmacoslinux
Try with needOr install directly
Source

About

Interpreter for PostScript and PDF

Commands

gs

Examples

Convert PDF to PNG images at 150 DPI$ gs -sDEVICE=png16m -r150 -o output_%d.png input.pdf
Merge multiple PDF files into one$ gs -sDEVICE=pdfwrite -o merged.pdf file1.pdf file2.pdf file3.pdf
Convert PostScript to PDF$ gs -sDEVICE=pdfwrite -o output.pdf input.ps