deepns / deepns.github.io

My Github Pages site
https://deepanseeralan.com/
0 stars 0 forks source link

tech/combine-multiple-pdf-files-into-one-from-command-line-in-mac/ #1

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Combine multiple PDF files into one from command line in Mac - Deepan Seeralan

Recently I downloaded some reference materials that came in a bunch of PDF files. I wanted to stitch them into one file so I can read or print more comfortably. I knew I can do this with the Preview app by drag-and-dropping multiple PDF files in the order I wanted to combine. Since I had few dozen files, I wasn’t interested in doing this manually. If Preview can do it, there must be some ways to do that from command line too. That way, I can automate this with a bash script to go over mulitple files. The solution turned out much simpler than I thought, thanks to this post.

https://www.deepanseeralan.com/tech/combine-multiple-pdf-files-into-one-from-command-line-in-mac/

gcoladon commented 3 years ago

Thanks! The fact that there is a Python script deep inside the bowels of MacOS that does exactly what I wanted was a very pleasant surprise. Now, I think I will go find /System/Library/Automator -name '*.py' -print to see what other great scripts are in there that I don't yet know about!

SSteve commented 3 years ago

Quick and useful. Thanks!