public PdfGrid RenderingReportHeader(Document pdfDoc, PdfWriter pdfWriter, IList<SummaryCellData> summaryData)
{
return TableHelper.SimpleTable(
columnsNumber: 1,
pdfCellAttributesList: new List<CellAttributes>
{
new CellAttributes
{
BasicProperties = new CellBasicProperties
{
HorizontalAlignment = HorizontalAlignment.Center,
ShowBorder = false,
FontColor = new BaseColor(Color.Black.ToArgb()),
BackgroundColor = null
},
RowData = new CellRowData
{
Value = ImagePath,
PdfRowType = RowType.MainHeaderRow
},
ItemTemplate = new ImageFilePathField()
},
new CellAttributes
{
BasicProperties = new CellBasicProperties
{
BorderColor = BaseColor.BLACK,
HorizontalAlignment = HorizontalAlignment.Center,
PdfFont = PdfFont,
RunDirection = RunDirection ?? PdfRunDirection.RightToLeft,
FontColor = MessageFontColor,
ShowBorder = false,
BackgroundColor = null,
PdfFontStyle = MessageFontStyle
},
RowData = new CellRowData
{
Value = Message,
PdfRowType = RowType.MainHeaderRow
}
},
null
},
showBorder: true
);
}