I am passing simple html to a cell in a pdf table and applying the RepTextInfo style listed below. This works for normal text in the html, however if i use or , the text font is change. It looks like Times New Roman.
I have also attached a sample of the output pdf text.
TextInfo contentSubHeaderTextInfo = new TextInfo();
contentSubHeaderTextInfo.FontName = "Arial";
contentSubHeaderTextInfo.FontSize = 8;
contentSubHeaderTextInfo.IsTrueTypeFontBold = true;
contentSubHeaderTextInfo.LineSpacing = 2;
TextInfo RepTextInfo = new TextInfo();
RepTextInfo.FontName = "Arial";
RepTextInfo.FontSize = 8;
RepTextInfo.LineSpacing = 2;
Aspose.Pdf.Table contentHeaderTable = new Aspose.Pdf.Table();
contentHeaderTable.ColumnWidths = "385";
contentHeaderTable.Margin.Top = 10;
Aspose.Pdf.Row contentHeaderRow = contentHeaderTable.Rows.Add();
contentHeaderRow.DefaultCellTextInfo = contentSubHeaderTextInfo;
Aspose.Pdf.Row contentRow = contentHeaderTable.Rows.Add();
contentRow.DefaultCellTextInfo = RepTextInfo;
Aspose.Pdf.Cell contentHeaderCell = contentHeaderRow.Cells.Add(title, contentSubHeaderTextInfo);
Text contentText = new Text(areaContent, RepTextInfo);
contentText.IsHtmlTagSupported = true;
Aspose.Pdf.Cell contentCell = contentRow.Cells.Add();
contentCell.Padding.Bottom = 10;
contentCell.Paragraphs.Add(contentText);
contentHeaderRow.Border = new BorderInfo((int)(BorderSide.Top | BorderSide.Bottom), 1.0f, new Color("black"));
paragraphs.Add(contentHeaderTable);