Conversion from RTF to HTML has incorrect header and footer

We are using Aspose.words 23.5 to convert RTF to HTML. In some documents, the header shows artifacts that appear to be headers from subsequent pages jumbled at the top. In addition, the bottom of the converted html shows “Page 1 of 4” which is confusing since it it the entire document. The RTF viewed directly in TextEdit doesn’t have these problems.

I have uploaded an attachment with the source RTF, converted HTML, and images highlighting the problems.

Please let us know how we can resolve this.aspose-headerfooter.zip (1.0 MB)

@jballing Please try to use the ExportHeadersFootersMode.None value for the HtmlSaveOptions.ExportHeadersFootersMode. As I understand from your screenshots it will produce the desired output.