Пример #1
0
        protected internal override void OnBuild(PdfElementContainer pdfDoc, object model)
        {
            model = GetModel(model);

            //Build for every children
            foreach (var child in Children)
            {
                child.OnBuild(pdfDoc, model);
            }
        }
Пример #2
0
        protected internal override void OnBuild(PdfElementContainer pdfDoc, object model)
        {
            model = GetModel(model);

            if (Children.Count > 0)
            {
                Children[0].FirstPage = true;
            }

            base.OnBuild(pdfDoc, model);
        }
Пример #3
0
 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);
 }
Пример #4
0
        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);
        }
Пример #5
0
 protected internal override void OnBuild(PdfElementContainer pdfDoc, object model)
 {
     model = GetModel(model);
     base.OnBuild(pdfDoc, model);
     Root.OnBuild(pdfDoc, model);
 }