Hello,
Sorry for the late reply,
Problem is caused by the <br> tags inside the justified <p> tag. Aspose treats the line after <br> tag as the last line and leaves it aligned to left. But the lines before the <br> tag are justified. I attached the the sample pdf output created via the below code.
Regards
PS: In the first post, I described the problem incorrectly, sorry for this.
Aspose.Words.
Document dosyaPdf = new Aspose.Words.Document();
Aspose.Words.
DocumentBuilder dosyaPdfPdfBuilder = new Aspose.Words.DocumentBuilder(dosyaPdf);
dosyaPdfPdfBuilder.InsertHtml(
"<html><head><style type=\"text/css\">body{font-family:Arial;font-size:12px;} .baslik{font-weight:bold;}</style></head><body><center><table border=\"0\" width=\"100%\"><tr><td colspan=\"5\"><html><body><P align=justify>Müdürlüğünüzde X XXXX XX XX XXXXX XXX XX XX sicil sayılı dosyada işlem gören ve XXXXX İnş. Taah. San. ve Tic. Ltd. Şti firmasına ihale ederek teslim almış olduğumuz Xxxxx xxxx x scscsc xsxsxdcd df df d frfgrfgrgr rgrgrg<br><br><br><br>Xxxxxx Xxxxxx Xxxxxx yapım işine dair İlgi (1) .</P></body></html></td></tr></html>");
dosyaPdfPdfBuilder.PageSetup.PaperSize = Aspose.Words.
PaperSize.A4;
dosyaPdfPdfBuilder.PageSetup.LeftMargin = Convert.ToDouble(Aspose.Words.ConvertUtil.MillimeterToPoint(20));
dosyaPdfPdfBuilder.PageSetup.RightMargin = Convert.ToDouble(Aspose.Words.ConvertUtil.MillimeterToPoint(20));
dosyaPdfPdfBuilder.PageSetup.LeftMargin = Convert.ToDouble(Aspose.Words.ConvertUtil.MillimeterToPoint(20));
dosyaPdfPdfBuilder.PageSetup.RightMargin = Convert.ToDouble(Aspose.Words.ConvertUtil.MillimeterToPoint(20));
dosyaPdf.Save(@"c:\deneme.pdf", Aspose.Words.SaveFormat.Pdf);