a script to combine pdf files

a python script to combine pdf files together, based on user's sort option

I download some pdf files online, they are seperated pieces from a ebook, I need to combine them togehter to make the book as a whole.

There are lots method to combine, but in Mac I found preview is not handy, and join.py is the default script in Mac to do the trick, it is located at
/System/Library/Automator/CombinePDFpages.action/Contents/Resources/join.py

I need to combine all the pdf in a folder based on time ascending order, I found a script but it does not have what I need, so I decided to write one.

Here it is

source

source

ReadMe

functions

Merge pages from a a collection of PDF files into a single PDF file.

usage


./mergepdf.py [--path ] [--sort ] [--output] [--output path and file name]

example usage


./mergepdf.py --path ~/Desktop/test/ --sort nameasc --output ~/Desktop/merge.pdf

你可能感兴趣的:(a script to combine pdf files)