неделя, 28 октомври 2012 г.

How to merge pdf files in Linux

Here are two very simple ways to merge pdf files:
pdftk *.pdf cat output onelargepdfile.pdf
Here, if you want the files to be merged in specific order, you can use:
pdftk name1.pdf name2.pdf name3.pdf cat output onelargepdfile.pdf
If you want to separate a large file on mane 1-page pdf files:
pdftk largepdfile.pdf burst
Another tool you can use to combine pdf-files is:
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combinedpdf.pdf -dBATCH 1.pdf 2.pdf 3.pdf
I used only the first method, but it worked great! Cheers!