I’m using this endpoint Aspose.Words Cloud - API References
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:
Endpoint: PUT https://api.aspose.cloud/v4.0/words/{MY_BASE_NAME}.docx/appendDocument"
@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:
First document doesn’t contains any footer or header
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?
UPD:
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.
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.
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.