I’m adding an html string to a text in a cell, when ever the string has tags inside the string that don’t start and end the string the alignment gets defaulted to left.
asText = new Aspose.Pdf.Text(getText(2));
asText.Margin.Top = Convert.ToInt32(row[2]);
asText.Margin.Left = Convert.ToInt32(row[3]);
asText.IsHtmlTagSupported = true;
asText.IsSpaced = true;
asText.IsAlignedByWord = true;
asText.TextInfo.Alignment = Aspose.Pdf.AlignmentType.Right;
asCell = asRow.Cells.Add();
asCell.Paragraphs.Add(asText);
the getText(2) returns “
<FONT face=“lucida sans”>ABCDEFGHIKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
”;