XpdfSplice extracts pages from input PDF documents and combines them together into output PDF documents. This process can involve any number of input files and any number of output files - for example, you can:
The core functionality is based on a single function: take a specified page from an input PDF file and append it to a new, output PDF file. With that single function, any combination of splitting and merging is possible.