Text Justify not working when converting from docx to pdf

Hi Support Team,
When trying to convert a word file (docx) to pdf, the justified text is not rendered as justified in the output pdf. The word file is a simple docx file that contains four similar paragraphs (one paragraph default justified, one paragraph justified low, one justified medium, and the final paragraph justified high). All the paragraphs are rendered the same in the output pdf file

I am using the below code for the conversion:

using Stream stream = new MemoryStream(File.ReadAllBytes(wordFilePath));
var document = new Aspose.Words.Document(stream);
using MemoryStream memoryStream = new MemoryStream();

document.Save(memoryStream, Aspose.Words.SaveFormat.Pdf);
var retVal = memoryStream.ToArray();
File.WriteAllBytes(pdfFilePath, retVal);

Please help me to fix this.

Thanks.

@housseinnasser Could you please attach your input and output documents here for testing? We will check the issue and provide you more information.

Attached.

Regards,
Hussein

TEST3.docx (14.3 KB)

ef07ae19-aba1-42b1-aea1-9ec0e33fc668.pdf (21.1 KB)

@housseinnasser
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-26498

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.