Word table to html table conversion

When we convert word to html, the table html elements <table><td> has width and heights. Is there any way we have <table><td> without width and heights?

@tech.purchases You can reset width of cell before saving document to HTML:

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

foreach (Table t in doc.GetChildNodes(NodeType.Table, true))
{
    foreach (Row r in t.Rows)
    {
        foreach (Cell c in r.Cells)
            c.CellFormat.Width = 0;
    }
}

HtmlSaveOptions opt = new HtmlSaveOptions();
opt.PrettyFormat = true;

doc.Save(@"C:\Temp\out.html", opt);

Thank you for quick reply.

Below is my code. where will the above solution fit? please help.

WordsApi wordsApi = new WordsApi(App.AppSid,App.AppKey);

var stream = this.GetFileStream(this.Request);

ConvertDocumentRequest convertDocumentRequest = new ConvertDocumentRequest(stream, format);
Stream outputStream = wordsApi.ConvertDocument(convertDocumentRequest);

//RETURN html as string
byte[] buffer = new byte[outputStream.Length];
outputStream.Read(buffer, 0, (int)outputStream.Length);

@tech.purchases You are using Aspose.Words Cloud API. I will move your request into the appropriate forum. My colleagues from the Cloud team will help you shortly.

This topic has been moved to the related forum: Word table to html table conversion - Free Support Forum - aspose.cloud