Arabic content is wrapped improperly upon rendering

@alexey.noskov Thanks for your prompt response , is there any workaround to avoid this issues as we are in production stage now:
the break issue you will find it in page number 2 arabic content is ok in word but coming in pdf in next page
alos special character issue you will find it in arabic content first page, bullets number 5 last word in the line “اضواً” but it comes in pdf like “اضواٍ”
attached sample and result for your reference
sample.docx (74.9 KB)
result.pdf (140.5 KB)

@squareone The problem occurs because by default MS Word uses font open type features. Aspose.Words.Shaping.Harfbuzz package provides support for OpenType features in Aspose.Words using the HarfBuzz text shaping engine. You should enabling open type features to get the expected result. To achieve this you should add reference to Aspose.Words Shaping Harfbuzz plugin and use the following code to convert your document:

Document doc = new Document(@"C:\Temp\in.docx");
doc.LayoutOptions.TextShaperFactory = Aspose.Words.Shaping.HarfBuzz.HarfBuzzTextShaperFactory.Instance;
doc.Save(@"C:\Temp\out.pdf");

out.pdf (123.0 KB)