public PdfPCell RenderingCell(CellAttributes attributes)
{
if (ShowPercentText)
{
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();
var phrase = attributes.BasicProperties.PdfFont.FontSelector.Process(data.ToSafeString());
return new PdfPCell(phrase);
}
var emptyPhrase = attributes.BasicProperties.PdfFont.FontSelector.Process(string.Empty);
return new PdfPCell(emptyPhrase);
}