qpdf

Tools for transforming, inspecting, and manipulating PDF files from the command line.

brewmacoslinux
Try with needOr install directly
Source

About

Tools for and transforming and inspecting PDF files

Commands

qpdf

Examples

merge multiple PDF files into one$ qpdf --empty --pages file1.pdf file2.pdf file3.pdf -- output.pdf
remove password protection from a PDF$ qpdf --password=mypassword --decrypt input.pdf output.pdf
compress PDF file to reduce size$ qpdf --compress-streams=y input.pdf output.pdf
extract specific pages from a PDF$ qpdf --pages input.pdf 1-5 -- output.pdf
split PDF into separate pages$ qpdf input.pdf --split-pages output-%d.pdf