The MergeTwoPDFFiles sample illustrates how to merge two multi-page PDF documents into one document.'
This method can be extended for any document type. The main rule that must be observed for copying pages from one document to another is that the type of the documents must be the same.