cpdf

Command-line PDF manipulation tool for splitting, merging, and editing

brewmacoslinux
Try with needOr install directly
Source

About

PDF Command-line Tools

Commands

cpdf

Examples

Merge multiple PDF files into a single document$ cpdf file1.pdf file2.pdf file3.pdf -o merged.pdf
Extract pages 1-5 from a PDF$ cpdf input.pdf 1-5 -o output.pdf
Split a PDF into individual pages$ cpdf input.pdf -split -o page_%%%.pdf