public PdfPCell RenderingCell(CellAttributes attributes)
{
var data = FuncHelper.ApplyFormula(attributes.BasicProperties.DisplayFormatFormula, attributes.RowData.Value);
attributes.RowData.FormattedValue = data;
if (attributes.BasicProperties != null && attributes.BasicProperties.RunDirection == PdfRunDirection.RightToLeft)
data = data.FixWeakCharacters();
if (attributes.BasicProperties.PdfFont == null)
{
return new PdfPCell();
}
data = showEmptyCell(data);
var phrase = attributes.BasicProperties.PdfFont.FontSelector.Process(data);
return new PdfPCell(phrase);
}