PDF merge from cli

The occasion might right from time to time when you need to merge multiple pdf’s. There are several ways to do this on Mac, but none of them worked out for me. This by a simple reason, the pdf’s where signed and secured, so I was unable to merge them using preview or other visual tools.

Seems like I’m only able to merge them using the python join.py script:

$ python '/System/Library/Automator/Combine PDF Pages.action/Contents/Resources/join.py' -o '/path/to/output.pdf' '/path/to/input1.pdf' '/path/to/input2.pdf'

Problem solved 🙂