merge pdf files
I recently downloaded (I don’t remember where from) the free e-book “Linux Kernel in a Nutshell”, which comes in a series of 22 pdf files. After chapter 5 I got tired of closing a pdf and opening the next one, so I decided to see if I could merge all of them into one.The tool I chose was pdftk. To get them in the right order I chose to write a script for it and test it out until it was perfect. The final result is this:
pdftk \ title.pdf colo.pdf LKNSTOC.fm.pdf ch00.pdf \ part1.pdf ch01.pdf ch02.pdf ch03.pdf ch04.pdf ch05.pdf ch06.pdf \ part2.pdf ch07.pdf ch08.pdf \ part3.pdf ch09.pdf ch10.pdf ch11.pdf \ part4.pdf appa.pdf appb.pdf LKNSIX.fm.pdf \ cat output 'linux kernel in a nutshell.pdf'
Powered by ScribeFire.

i downloaded it here:
http://www.kroah.com/lkn/
To rotate pages 3-7 of a 7-page document, do:
pdftk input.pdf cat 1-2 3-endE output output.pdf