Hi Rathinam,
Thanks for your inquiry. Please use the following code to remove empty paragraphs (which are not contained inside Tables) from document before saving to HTML.
Document doc = new Document(MyDir + @“OT.docx”);
foreach (Paragraph para
in doc.GetChildNodes(NodeType.Paragraph,
true))
{
if (para.ChildNodes.Count == 0 &&
para.GetAncestor(NodeType.Table) == null)
para.Remove();
}
HtmlFixedSaveOptions options = new HtmlFixedSaveOptions();
options.ShowPageBorder = false;
doc.Save(MyDir + @“outNormal.html”, options);
Secondly, we will provide an option to specify horizontal alignment of Page in HtmlFixed format in future. I have logged this requirement in our issue tracking system. The Id of this issue is WORDSNET-10277. Your request has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.
Best regards,