Hi there,
I am looking for a solution to insert an existing document into another document
below is what I’ve found on your website, and its exactly what I am looking for.
https://docs.aspose.com/words/java/insert-and-append-documents/
There is a problem with the sample code. If the source document has a header and a footer, they’ll not be inserted into destination document with the sample code.
I can get header with following code, srcSection.HeadersFooters[HeaderFooterType.HeaderPrimary]; and then manually create a node and insert it into destination document, the header shows up in the destination document but it pushes the contents down to next page because the header was inserted in as contents; beyond that, if I have 2 pages in the source document, after I insert it into destination document with my approach, I have header on first page, but no header on second page. Is there a way to fix this issue?
thx