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.