Hi guys
We encountered a problem when merging documents by using Aspose.Word which version is 2022.11 . The code is C# and attachments are shown below.
Document src = new Document("d:\\sub.docx");
Document dest = new Document("d:\\main.docx");
dest.AppendDocument(src ,ImportFormatMode.KeepSourceFormatting );
dest.Save("d:\\combined.docx", SaveFormat.Docx);
combined.docx (2.4 MB)
main.docx (525.6 KB)
sub.docx (2.4 MB)
The name of the problem document is combined.docx. Please switch to page 5. The position shown in the red box in the screenshot below shows that the header line of the original document sub.docx has no color. After merging the document, it turns orange.