public Report() { Width = 595F; Height = 842F; Margins = new Margins(0, 0, 50, 50); Header = new ReportSection(this); Body = new ReportSection(this); Footer = new ReportSection(this); }
private void RenderReportSection(ReportSection section, PdfContentByte dc = null) { if (dc == null) dc = this.dc; foreach (var item in section.Elements) { RenderElement(item, dc); var bottom = item.Top + item.Height; if (bottom > section.Height) section.Height = bottom; } }