Appending a word document to another word document

Hi,
I am appending a word document to another word document. The source word document has perfect style with no spacing issues. But while appending this word to another word document it came with extra spaces. Below is the code of appending the word document. Can you please help me to solve this?

ImportFormatOptions importFormatOptions = new ImportFormatOptions();
importFormatOptions.KeepSourceNumbering = true;
importFormatOptions.IgnoreHeaderFooter = false;

temp.FirstSection.PageSetup.SectionStart = SectionStart.NewPage;

OutPut.AppendDocument(temp, ImportFormatMode.KeepSourceFormatting, importFormatOptions);

Thanks
Jithin V P

@jithin.p Could you please attach your source and output documents here for testing? We will check the issue and provide you more information.