Hello
Thanks for your inquiry. You should just set KeepSourceFormatting and unlink headers/footer before appending documents. Please see the following code:
Document dst = new Document(@"MainDoc.dot");
Document src = new Document(@"blankPage.doc");
// Unlink HeadersFooters
src.FirstSection.HeadersFooters.LinkToPrevious(false);
// Set SectionStart to NewPage
src.Sections[0].PageSetup.SectionStart = SectionStart.NewPage;
dst.AppendDocument(src, ImportFormatMode.KeepSourceFormatting);
dst.Save(@"out.pdf");
Best regards,
Andrey Noskov
Developer/Technical Support
Aspose Auckland Team