Hebrew text not aligned to the right

Hi, I have some Hebrew Word files. I need to convert some text to HTML, but it is not aligned to the right

HTML:

<div><p style="margin-left:66.2pt;margin-right:0pt;margin-top:6pt;margin-bottom:6pt;line-height:120%;font-size:11pt;" dir="rtl"><span style="font-family:'Times New Roman';font-size:11pt;">1.&nbsp;</span><span style="font-family:David;font-size:11pt;">ממשק&nbsp;</span><span style="font-family:'Times New Roman';font-size:11pt;"> &nbsp;</span></p><p style="margin-left:84.2pt;margin-right:0pt;margin-top:6pt;margin-bottom:6pt;line-height:120%;font-size:11pt;" dir="rtl"><span style="font-family:'Times New Roman';font-size:11pt;">2.&nbsp;</span><span style="font-family:David;font-size:11pt;">חיבורים&nbsp;</span><span style="font-family:'Times New Roman';font-size:11pt;">ETHERNET&nbsp;&nbsp;&nbsp;</span></p><p style="margin-left:84.2pt;margin-right:0pt;margin-top:6pt;margin-bottom:6pt;line-height:120%;font-size:11pt;" dir="rtl"><span style="font-family:'Times New Roman';font-size:11pt;">3.&nbsp;</span><span style="font-family:David;font-size:11pt;">חיבור דיסקרטיים</span><span style="font-family:'Times New Roman';font-size:11pt;"> &nbsp; </span></p><p style="margin-left:84.2pt;margin-right:0pt;margin-top:6pt;margin-bottom:6pt;line-height:120%;font-size:11pt;" dir="rtl"><span style="font-family:'Times New Roman';font-size:11pt;">4.&nbsp;</span><span style="font-family:David;font-size:11pt;">חיבור תקשורת טורית&nbsp;</span><span style="font-family:'Times New Roman';font-size:11pt;"> </span><span style="font-family:David;font-size:11pt;">&nbsp;.</span></p></div>

Hi Mirel,

Can you send us your Word file so we can reproduce the issue?

Also, how exactly are you converting some text to HTML? Are you saving the whole DocumentModel to an HTML file or something else?

Regards,
Mario

Hi Mirel,

Please try again with this NuGet package:

Install-Package GemBox.Document -Version 2026.9.143

Note that this is a hidden (unlisted) version. To install it, you’ll need to run the above command on the NuGet Package Manager Console (Tools → NuGet Package Manager → Package Manager Console).

Does this solve your issue?

Regards,
Mario