jPDFAssemble Sample is a Java library that assembles any PDF files. With jPDFAssemble, you can combine, merge or split PDF documents.
The library can save resulting documents to the local file system or to an output stream to be able to serve the documents directly to a client browser when working within a J2EE server.