Handling pdf files in linux, using command line
Some times I need to merge or split files in pdf, and a great tool for this is PDFtk. I, generally, prefer use the command line, it's just my preference, so, follow the tips:
Installing
$ sudo apt-get install pdftk
Merging separate files in one
$ pdftk file1.pdf file2.pdf output final_file.pdf
Splitting files
$ pdftk A=fileA.pdf cat A1 output page1.pdf
or, if you want the pages 1 to 3 and the 5:
$ pdftk A=fileA.pdf cat A1-3 A5 output final_file.pdf
or yet, the pages you want are in different files, see:
$ pdftk A=fileA.pdf B=fileB.pdf cat A1-3 A5 B4-5 B7 output final_file.pdf
I took the pages 1, 2, 3 and 5 of fileA, and pages 4, 5 and 7 of fileB.
Graphical Interface
Now, if you dont't like command line, and want using a graphical tool, you need to know the PDF Chain.
Installing
$ sudo apt-get install pdfchain
That's all, folks!