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

Free Support Forum - aspose.com

Using appenddocument keepsourceformatting footer problem

When using appenddocument, and keepsourceformatting option, to combine documents the font settings of the document being added are not being retained. For example the footer may have text with a 12 pt font, but after being appended the footer size is 10 pt.

command used is as shown.
Docfinal.AppendDocument(dsttemp, ImportFormatMode.KeepSourceFormatting);


Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word documents.
  • Please attach the output Word file that shows the undesired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we’ll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.

Thank you see attached zip file.

mergetest.zip (4.9 MB)


Thanks for sharing the documents. Please note that Aspose.Words mimics the behavior of MS Word. If you join both documents using MS Word, you will get the same output.

I guess that is true, but the AppendDocument method is not the same a the merge documents in word. For example there is no option to Keepsourceformatting when merging documents. Merging documents also does not honor page separation.


Thanks for your inquiry. Please open your documents in MS Word. Insert the section break (new page) at the end of “file1.docx” and copy the content of “file2.docx”. You will get the paste options. Please check the attached image for detail. keep source formatting.png (23.6 KB)

thanks. I’ll have to look for another solution to this issue.