I tried to convert the attached document with right to left paragraphs in HTML. Looks like all the paragraphs but the first one are exported correctly.
Also, it seems to me the structure of the HTML is not correct for the RTL spans in RTL paragraphs.
They are of the form:
I believe the RTL spans should also be of the form:
This is alse the case for RTL text in LTR paragraphs as you can see in the last paragraph of the attached HTML.
Here is the code I used:
Document d = new Document(@"SRC UTF_8.doc"); HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions(); htmlSaveOptions.PrettyFormat = true; htmlSaveOptions.ExportXhtmlTransitional = true; d.Save(@"SRC UTF_8.html", htmlSaveOptions);