The simplest way to join documents involves a single call the Document.AppendDocument method. This method will append the Document object passed as a parameter to the end of the Document object which called the method. The second parameter accepts an ImportFormatMode enumeration which defines how conflicting styles are handled when one document is imported into the other.
Example
Shows how to append a document to the end of another document using no additional options.
[Java]
// Append the source document to the destination document using no extra options.
dstDoc.appendDocument(srcDoc, ImportFormatMode.KEEP_SOURCE_FORMATTING);
After this code is executed the destination document will include all content from the source document, which is inserted at the end of the destination document.