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

Free Support Forum - aspose.com

Different footer in generated document when adding a footer to a document

I added a proof of concept to show the error.

Main document see main.JPG in the attachements
Footer document see footer.JPG in the attachements
Generated document generated.JPG in the attachements

as you can see the generated document footer is different from the original footer

generated document styles generated_doc_styles.JPG in the attachements
footer document styles footer_doc_styles.JPG in the attachements

as you can see 2 new tabs appear in the generated document footer
if you examine the footer document in the debugger the tabs are present immediately after you read the file with Aspose, but in Word that does not appear
Hi Raluca,

Thanks for your inquiry.

Please use ImportFormatMode.KeepSourceFormatting instead of ImportFormatMode.UseDestinationStyles in InsertHeaderOrFooter method to get the desired output. Hope this helps you.