Thank you for your answer and thanks for forwarding the request to the developpement team, it would be great to not need to save and reimport the template after using importHeadersAndFooters method.
Is it possible to have the same header for all the document, but a different footer for each page ?