We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Issue in document concatenation

Document srcDoc1 = new Document("File-1.rtf");
Document srcDoc2 = new Document("File-2.rtf");
DocumentBuilder builder = new DocumentBuilder(srcDoc1);
builder.insertDocument(srcDoc2, ImportFormatMode.KEEP_SOURCE_FORMATTING);
srcDoc1.save("Out_AW178_source.rtf", com.aspose.words.SaveFormat.RTF);*

Method moveToDocumentEnd() is not working properly.
Please see attached files that reproduces the issue. It is related to the circle located in the header. Aspose is trying to concatenate files inside of it instead of move to the end of the document. If I remove that circle, it works fine.
How to fix that?

Thanks for your inquiry. Please move to the last paragraph of document as following and insert document. It will resolve the issue.

DocumentBuilder builder = new DocumentBuilder(srcDoc1);
builder.InsertDocument(srcDoc2, ImportFormatMode.KeepSourceFormatting);

Indeed It worked fine. Thank you