Footer missing

Hello, i run into an issue with conversion docx to html. Footer is completely missing and second header is missing, is there a way so it will be included?

@John.p

Summary
When converting a DOCX document to HTML with Aspose.Words, the footer and a second‑page header can be missing from the generated HTML.

Why it happens

  • By default Aspose.Words may not include headers and footers in the HTML output unless the corresponding save‑option is enabled. If the document uses a different header/footer for the second page (e.g., “different first page” or odd/even headers), those elements are omitted when the option is not set.

What to do next

  1. Enable header/footer export – set the ExportHeadersFooters property (and, if needed, the mode) on HtmlSaveOptions.
using Aspose.Words;
using Aspose.Words.Saving;
using System.Text;

var doc = new Document("input.docx");

var htmlOptions = new HtmlSaveOptions
{
ExportHeadersFooters = true, // include headers/footers
// ExportHeadersFootersMode = ExportHeadersFootersMode.All, // optional: export all if supported
CssStyleSheetType = CssStyleSheetType.Inline,
ExportImagesAsBase64 = true,
ExportFontsAsBase64 = true,
PrettyFormat = true,
Encoding = Encoding.UTF8
};

doc.Save("output.html", htmlOptions);
  1. Check the document’s header/footer settings – open the DOCX in Word and verify that the second‑page header/footer is defined (e.g., “different first page” or odd/even). The option above will cause those elements to be written to the HTML when they exist.
  2. Consider updating Aspose.Words – if you are on an older release, moving to a newer version can resolve known export issues.
  3. Validate the result – open the generated HTML and confirm that the previously missing footer and second‑page header now appear.

:warning: The guidance is based on the available evidence; exact property names or defaults may vary between SDK versions. Please refer to the official Aspose.Words documentation for your specific version.

:warning: I could not fully verify this explanation against the retrieved sources. Please double-check the behaviour in your environment and confirm the exact SDK/version.

Please share more information, what product do you use? Also, please share a file you convert to HTML.