Headers, footers, section breaks and page breaks in Html to Docx conversion

Hi Steve!

Regarding the conversion of page-related properties from HTML to DOCX, I recommend that you take a look at the following example: Convert HTML pages to PDF files from C# / VB.NET applications.

GemBox.Document currently doesn’t support loading multiple headers/footers from HTML. Currently, only the following HTML is supported:
If <header> is the first element in the HTML file, then its content will be read as a document’s default header; if <footer> is the last element in the HTML file, then its content will be read as a document’s default footer.

If you want to build HTML with multiple sections with different headers/footers, then I recommend that you simply load each HTML section with its own header/footer into another DocumentModel instance and then clone Section(s) of that DocumentModel instance into a final DocumentModel instance that you save to DOCX or any other file format.

Regards,
Stipo