when user upload docx, we convert it to html and send it to ckeditor for user to edit. after editing user may opt to download. We have discovered that when there are headers/footers in docx they appear as header and footer in converted html just once as they are supposed to but when user download the file which is being converted to docx on the fly using embedHtml, headers and footers don't appear as they should. they just work as normal element. header at top of page like normal and footer at end of document.
is there a way to save header/footer information when converting from docx to html and inject header/footer back in docx while it is being converted from html?