There is a memory leak related to the referenced elements by style in the style repository from the main document. The referenced elements are from headers and footers.
htmlProvider.ExportSettings.StylesExportMode = StylesExportMode.Inline;HTML import fails when an image has an align tag set to a value different from center
<img align="top"
width="170" height="61" />