onizet / html2openxml

Html2OpenXml is a small .Net library that convert simple or advanced HTML to plain OpenXml components. This program has started in 2009, initially to convert user's comments into templated Word.
MIT License
321 stars 109 forks source link

Is it possible to add footer to every doc page? #94

Closed umbarov closed 3 years ago

umbarov commented 3 years ago

Hi, I would like to add a company logo to every footer section of a doc file. Is it possible to do this in html?

onizet commented 3 years ago

Hi, the API to add content to header/footer is different than the main content. If you want to design a static template, I suggest you to save your docx and append the result of the Html conversion into it. You can find more in the demo code : https://github.com/onizet/html2openxml/blob/dev/examples/Demo/Program.cs

umbarov commented 3 years ago

@onizet thanks. 👍