Free Support Forum - aspose.com

Merging Multiple Documents into One Document


#1

Hi,

We have bought Aspose.Total (.net) Last year at some point. We have utilised Aspose.word and Aspose.PDF at different part of our projects.

I have a new project where we have to merge multiple documents in the first document by finding the hidden bookmark. However the issue we have is that the header and footer of the first document is applied to merge documents as well. We want a solution where when a merge document is inserted, header and footer is removed from those merged documents. Is it possible to achieve that? If so, I would like a sample for it.

Thanks
Erum Ahsan
Momentum Pensions


#2

@erum-ahsan.momentum

Thanks for your inquiry. If you are joining Word documents, you can remove header/footer from the document and join them. You can also link or unlink all headers and footers to the corresponding headers and footers in the previous section using HeaderFooterCollection.LinkToPrevious method. We suggest you please read the following article.
Controlling How Header and Footers Appear

Could you please share your input and expected output documents along with some detail of your use case? We will share more detail about your query.