Hi Team,
I am using Aspose.Words 25.5.0 to convert a Word document into HTML. However, the table formatting in the generated HTML does not match the formatting in the source document.
Source Document table :
Converted HTML output :
Snippet :
HtmlSaveOptions options = new HtmlSaveOptions(SaveFormat.Html)
{
ExportImagesAsBase64 = true,
ExportXhtmlTransitional = true,
Encoding = System.Text.Encoding.UTF8,
ExportHeadersFootersMode = ExportHeadersFootersMode.None,
ExportPageMargins = true,
ExportPageSetup = true,
UseHighQualityRendering = false,
AllowEmbeddingPostScriptFonts = true,
PrettyFormat = false,
SaveFormat = SaveFormat.Html,
ExportTocPageNumbers = true,
CssStyleSheetType = CssStyleSheetType.Inline,
MemoryOptimization = true,
ExportListLabels = ExportListLabels.AsInlineText,
ImageResolution = 200
};
var loadOption = new Aspose.Words.Loading.LoadOptions() { LoadFormat = LoadFormat.Docx, };
MemoryStream wordMs = new MemoryStream(wordToHTML.WordBytes)
Document doc = new Document(wordMs, loadOption);
doc.Save(@"Documents" + Path.DirectorySeparatorChar + "VerticleIssue.html", options);
Source Document :
VerticleIssue.docx (212.6 KB)

