PDFjam is a small collection of shell scripts which provide a simple interface to much of the functionality of the excellent pdfpages package (by Andreas Matthias) for pdfLaTeX. These scripts take one or more PDF files (and/or JPG/PNG graphics files) as input, and produce one or more PDF files as output. They are useful for joining files together, selecting pages, reducing several source pages onto one output page, etc., etc.
Extracted automatically from Pdfjam homepage
brew install pdfjam
The following dependency will be installed if you install Pdfjam: