Wrong direction of mixed english-arabic text

Hi.
I have a document with mixed text(English and Arabic).
And when I convert this document to pdf, mixed text in TOC, changes direction.

Simple code for test:

Summary

Document doc = new Document(“document.docx”);
using (var stream = File.Create(“test.pdf”))
{
doc.Save(stream, SaveFormat.Pdf);
}

docs.zip (238.6 KB)

I am using Aspose.Words version 16.2.0

Is this a known issue?
Maybe it was fixed in new versions?

@Semen.Prokofiev,

Thanks for your inquiry. After an initial test with the licensed latest version of Aspose.Words for .NET i.e. 19.12, we were unable to reproduce this issue on our end. Please see the output document generated on our end by using the following simple code:

.NET Code:

Document doc = new Document("E:\\Temp\\docs\\document.docx");
doc.Save("E:\\Temp\\docs\\19.12.pdf");

So, we suggest you please upgrade to the latest version. Hope, this helps.

Thank you. It’s works on new version!