My solution takes several documents produced through aspose at different times and merge's them all together into a single file before sending it off. The code I've attached works great as long as all documents have a header. If I merge in a document that doesn't have any header information initialy though it brings in the header to this document from the document I'm merging to (either that or the next document I merge in with header info adds it to my already merged document, not exactly sure which). The header information in question if it matters is an image added to the header using the watermark sample code. Is there a wrong setting I'm using to say that each document section should retain it's own header and footer?
document.FirstSection.PageSetup.SectionStart = SectionStart.NewPage
For Each srcSection As Section In document
srcSection.PageSetup.PageWidth = mergeDocument.LastSection.PageSetup.PageWidth
srcSection.PageSetup.PageHeight = mergeDocument.LastSection.PageSetup.PageHeight
Dim newSection As Section = DirectCast(mergeDocument.ImportNode(srcSection, True, ImportFormatMode.KeepSourceFormatting), Section)