Can't convert html file to docx

The conversion of this file
unconvertable_example.zip (2.0 KB)
produces markup as content of docx or pdf file. How can I fix it?
I have tried to convert it even using Convert Files Online - Word, PDF, HTML, JPG And Many More. It doesn’t work too
unconvertable_example.zip (1.97 KB)

@VitaliyT85 The document load format is detected as TXT. You can explicitly specify load format to force Aspose.Words to load the document as HTML:

LoadOptions opt = new LoadOptions();
opt.LoadFormat = LoadFormat.Html;
Document doc = new Document(@"C:\Temp\in.html", opt);
doc.Save(@"C:\Temp\out.docx");

Here is the produced output: out.docx (11.0 KB)

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-26054

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@alexey.noskov Thank you for your assistance. Your answer was very helpful.

1 Like

The issues you have found earlier (filed as WORDSNET-26054) have been fixed in this Aspose.Words for .NET 23.12 update also available on NuGet.