var wordtohtml = new Aspose.Words.Document(stream);
wordtohtml.LayoutOptions.CommentDisplayMode = CommentDisplayMode.ShowInBalloons;
wordtohtml.LayoutOptions.RevisionOptions.RevisionBarsColor = RevisionColor.ByAuthor;
wordtohtml.LayoutOptions.RevisionOptions.RevisedPropertiesEffect = RevisionTextEffect.Color;
wordtohtml.LayoutOptions.RevisionOptions.InsertedTextColor = RevisionColor.BrightGreen;
wordtohtml.LayoutOptions.RevisionOptions.DeletedTextColor = RevisionColor.Yellow;
wordtohtml.LayoutOptions.RevisionOptions.RevisionBarsPosition = HorizontalAlignment.Outside;
HtmlFixedSaveOptions htmlSaveOptions = new HtmlFixedSaveOptions();
htmlSaveOptions.PageMargins = 0;
htmlSaveOptions.ExportEmbeddedCss = true;
htmlSaveOptions.ExportEmbeddedFonts = true;
htmlSaveOptions.ResourceSavingCallback = callback;
htmlSaveOptions.PrettyFormat = true;
wordtohtml.Save(path, htmlSaveOptions);