https://support.apple.com/en-us/HT202945
gs is installable via homebrew.
It has a lot of actually really useful pdf slicing features, like alternate merge (for merging both sides of scanned documents into one).