PDFtk

PDFtk is a toolkit for working with PDF files. It can split, merge, rotate, and perform many other operations on documents. The command line version is well suited to server-side automation, where PDFs need to be assembled or altered without a person clicking through an interface.