Is there clear documentation on how to properly use headers, footers and breaks in Html so they convert properly to Docx?
I have them working to some degree but sometimes I make small changes to my Html and it will stop inserting the page breaks properly or sometimes it will add page breaks where they don’t belong, often right after a header so I end up with a blank first page. I’m finding the Html to be very fragile when it comes to correctly converting to Docx even though it respects all my page breaks when actually printing or saving to PDF.
As a related issue, is it possible to build the Html in a way that it will use different headers or footers in different sections of the resulting document? Our site allows someone to download a single document or download sets of documents. If they download sets then it builds a page that has all the content on it and converts the entire thing to one Docx file. It would be nice if I could change the header to match the sub-document. I’ve tried using elements in the html, hoping that might result in a different section in the Docx but that doesn’t seem to work.
I know that ultimately it would be better for me to build these directly in code as Docx from scratch but I’m working with what I have. Converting the old Cloud Convert method to Gembox was faster than rebuilding everything to create the doc directly using the Gembox object model.