private void AddStatementInfoToTitle(TableRowBuilder tableRowBuilder, int pageCount)
        {
            tableRowBuilder.AddCell("Account number:").SetFont(FNT8_9);
            tableRowBuilder.AddCell(statementInfo.AccountNumber + " ").SetFont(FNT9B);
            tableRowBuilder.AddCell(statementInfo.DateBegin.ToString(
                                        "MMMM dd, yyyy", DocumentLocale) +
                                    " - " +
                                    statementInfo.DateEnd.ToString(
                                        "MMMM dd, yyyy", DocumentLocale)).SetFont(FNT8_9);
            var paragraphBuilder = tableRowBuilder.AddCell().SetFont(FNT8_9).AddParagraph();

            paragraphBuilder
            .AddTextToParagraph("Page ")
            .AddPageNumberToParagraph()
            .AddTextToParagraph(" of " + pageCount);
        }
        private void AddCellsToFormRow(TableRowBuilder rowBuilder, string[] labels,
                                       string[] values, float valueFontSize, int i)
        {
            var valueFont   = Fonts.Helvetica(values == null ? 8f : valueFontSize);
            var cellBuilder = rowBuilder.AddCell();

            cellBuilder.AddParagraph(labels[i]).SetMarginTop(0).SetFont(FNT7);
            var text = values != null && i < values.Length ? values[i] : " ";

            cellBuilder.AddParagraph(text).SetFont(valueFont);
        }
        private void AddTitle(TableRowBuilder rowBuilder, string text)
        {
            rowBuilder.SetBorder(borderBuilder =>
            {
                borderBuilder
                .SetRightWidth(0).SetTopWidth(0).SetLeftWidth(0).SetBottomWidth(2)
                .SetStroke(Stroke.Solid);
            });
            var cellBuilder = rowBuilder.AddCell();

            cellBuilder.AddParagraph().SetFont(FNT11).AddTextToParagraph(text);
        }
        private void AddRadioCellsToRow(TableRowBuilder rowBuilder, string[] labels, int i)
        {
            var    cellBuilder = rowBuilder.AddCell();
            string text        = labels[i];

            if (i == 0)
            {
                cellBuilder.AddParagraph(text).SetFont(FNT7);
            }
            else
            {
                cellBuilder.AddParagraph("o").SetFont(FNTZ12);
                cellBuilder.AddParagraph(text).SetFont(FNT10);
            }
        }