/// <summary> /// Properties of groups headerds. /// </summary> public void GroupHeaderProperties(HeaderBasicProperties data) { _builder.GroupHeaderProperties = data; }
/// <summary> /// Properties of pages headerds. /// </summary> public void PageHeaderProperties(HeaderBasicProperties data) { _builder.PageHeaderProperties = data; }
private PdfGrid createTable(string html, HeaderBasicProperties basicProperties) { var table = new PdfGrid(1) { RunDirection = (int)basicProperties.RunDirection, WidthPercentage = basicProperties.TableWidthPercentage }; var htmlCell = new HtmlWorkerHelper { PdfFont = basicProperties.PdfFont, HorizontalAlignment = basicProperties.HorizontalAlignment, Html = html, RunDirection = basicProperties.RunDirection, StyleSheet = basicProperties.StyleSheet }.RenderHtml(); htmlCell.HorizontalAlignment = (int)basicProperties.HorizontalAlignment; htmlCell.Border = 0; table.AddCell(htmlCell); if (basicProperties.ShowBorder) return table.AddBorderToTable(basicProperties.BorderColor, basicProperties.SpacingBeforeTable); table.SpacingBefore = basicProperties.SpacingBeforeTable; return table; }