When I add Multi Line text for text stamp with arabic words and Alignment Right -or center-
the first line is shifted and end of text is croped
Document doc = new Document(path);
var text = "الاسم الكامل : اهلا وسهلا بيكم";
var formattedText = new Aspose.Pdf.Facades.FormattedText(text);
formattedText.AddNewLineText("اسم الملف : title 01");
Page page = doc.Pages[1];
TextStamp textStamp = new TextStamp(formattedText);
textStamp.TextAlignment = HorizontalAlignment.Right;
textStamp.TextState.Font = FontRepository.FindFont("Arial");
textStamp.TextState.ForegroundColor = Aspose.Pdf.Color.Purple;
textStamp.TextState.FontSize = 16;
textStamp.XIndent = 0;
textStamp.YIndent =0;
page.AddStamp(textStamp);
output-left.pdf (225.7 KB)
output-center.pdf (225.7 KB)