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

Free Support Forum - aspose.cloud

Append Document API: Footers from Base MS Word Document Not Applied to Appended Documents


I’m using this endpoint https://reference.aspose.cloud/words/#/op/AppendDocument
It merges my documents nicely, but I can’t get the resulting document to have the same footer as the base document.

I tryied to use “ApplyBaseDocumentHeadersAndFootersToAppendingDocuments” but it seems endpoint just ignores it.

Here are my request:

PUT https://api.aspose.cloud/v4.0/words/{MY_BASE_NAME}.docx/appendDocument"



contentType = application/json
Authorization = Bearer ***

I would be very gratefull for help.

I attached two files here (base & to append):
base_1.docx (20.5 KB)
append_1_2.docx (22.0 KB)


Can you please double check your base document? I doubt the header object is empty.


@tilal.ahmad sorry for the delay, I didn’t able to re-check my files. & Thank your for your message.

Now I checked it and everything is correct:

  1. First document doesn’t contains any footer or header
  2. I supposed, that appending documents wouldn’t have any too after merging

But maybe it works only if header/footer is non-empty?
In this case is there is a way to delete header/footer for all appending docs on merging if base document doesn’t contains it?

I just tried the same thing with document that contains footer, but result is the same: each document inside my merged doc has his own footer.

Here is a base document with filled footer:
base_1_with_footer.docx (21.1 KB)

I have no idea what else I can try, will be very grateful for any advice.


Thanks for your feedback. Please share your current Aspose.Words Cloud output and expected output documents. It will help us address your requirements. You can create the expected output document using MS Word.

Hi, @tilal.ahmad!

Thanks for your time.

Here are my files:

result.docx (17.0 KB)
expected_result.docx (26.3 KB)


It seems you want to remove all the headers and footers from a Word document. You can use the DeleteHeadersFooters API method. Please check whether it meets your requirements.

@tilal.ahmad, thanks, I didn’t see this method, interesting.
However, this is only one of the examples.
My main goal is not to just remove footer, but make it the same like in first (base) document (this file changes dynamically, so in next my run it could be with non-empty footer).
Is there is a way to do that?


Thanks for your feedback. I noticed that the Append API is not applying footers from the base document to the output document. So I logged a ticket (WORDSCLOUD-2483) for further investigation. We will keep you updated about the issue resolution progress within this forum thread.

Thank you very much, will wait

1 Like