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

Free Support Forum - aspose.com

Word merging

Hi,


is there a way to merge documents with different headers, footers and page numbering retained? The code below causes that the headers, footers and page numbers are inherited from the first document.

doc.getFirstSection().getPageSetup().setSectionStart(SectionStart.NEW_PAGE);
document.appendDocument(doc, ImportFormatMode.USE_DESTINATION_STYLES);

Thanks in advance for any help.
Mariusz

Hi Mariusz,


Thanks for your inquiry. Please refer to the following section of documentation.

Controlling How Header and Footers Appear
Controlling How Page Numbering is Handled

Hope, this helps.

Best regards,