Retain Red Border Lines of Table Cells during Word DOCX to HTML Fixed File Conversion C# .NET | Encode Embed CSS SVG Images Fonts

Hi,

when I render this document TableWithRedLines.zip (142.0 KB)

with this code:
Document docWR = new Document(@“TableWithRedLines.docx”);

        HtmlFixedSaveOptions opts2 = new HtmlFixedSaveOptions();
        string cssPrefix = "dm";
        HtmlFixedSaveOptions saveOptionsFixed = new HtmlFixedSaveOptions();
        saveOptionsFixed.Encoding = new UTF8Encoding(true);
        saveOptionsFixed.FontFormat = ExportFontFormat.Ttf;
        saveOptionsFixed.ExportEmbeddedCss = true;
        saveOptionsFixed.ExportEmbeddedImages = true;
        saveOptionsFixed.ExportEmbeddedFonts = true;
        saveOptionsFixed.ExportEmbeddedSvg = true;
        saveOptionsFixed.PrettyFormat = true;
        saveOptionsFixed.CssClassNamesPrefix = cssPrefix;
        docWR.Save(@"html\TableWithRedLines.html", opts2);

some red table border lines are missing, e.g. the left border of the first table.
What is the reason and how can we fix it ?

Regards,
Guido

@Nachti,

After an initial test with the licensed latest (21.2) version of Aspose.Words for .NET, I was unable to reproduce this issue on my end. Please see the following output HTML-Fixed file generated on my end:

C# code used to produce above HTML file:

Document doc = new Document("C:\\Temp\\TableWithRedLines\\TableWithRedLines.docx");

string cssPrefix = "dm";
HtmlFixedSaveOptions saveOptionsFixed = new HtmlFixedSaveOptions();
saveOptionsFixed.Encoding = new UTF8Encoding(true);
saveOptionsFixed.FontFormat = ExportFontFormat.Ttf;
saveOptionsFixed.ExportEmbeddedCss = true;
saveOptionsFixed.ExportEmbeddedImages = true;
saveOptionsFixed.ExportEmbeddedFonts = true;
saveOptionsFixed.ExportEmbeddedSvg = true;
saveOptionsFixed.PrettyFormat = true;
saveOptionsFixed.CssClassNamesPrefix = cssPrefix;


doc.Save("C:\\Temp\\TableWithRedLines\\DOCX to HTML Fixed Conversion.html", saveOptionsFixed);

So, we suggest you to please upgrade to the latest version of Aspose.Words for .NET.

Do you see the same problem in above HTML? In case the problem still remains, then please ZIP and upload your output HTML file and a screenshot showing the problematic areas here for our reference. What web browser are you observing this problem in? We will then investigate the issue on our end and provide you more information.