protected internal override void OnBuild(PdfElementContainer pdfDoc, object model) { model = GetModel(model); if (!FirstPage) { var page = new AreaBreak(AreaBreakType.NEXT_PAGE); pdfDoc.Add(page); } // iText.Layout.Element.LineSeparator base.OnBuild(pdfDoc, model); }
protected internal override void OnBuild(PdfElementContainer pdfDoc, object model) { model = GetModel(model); base.OnBuild(pdfDoc, model); var paragraph = new Paragraph(); BuildElement <Paragraph>(paragraph, model); foreach (var content in Content) { paragraph.Add(content.GetText(model)); } pdfDoc.Add(paragraph); }