private void FillInsuranceTable(TableBuilder tableBuilder)
        {
            tableBuilder
            .SetWidth(XUnit.FromPercent(100))
            .SetBorder(Stroke.None)
            .SetContentRowBorderWidth(0, 0, 0, 0)
            .AddColumnPercent("", 100);
            var rowBuilder = tableBuilder.AddRow();

            AddTitle(rowBuilder, "About your insurance:");
            rowBuilder = tableBuilder.AddRow();
            var cellBuilder = rowBuilder.AddCell();

            AddForm(cellBuilder, MedicalBillBuilder.ENS_PR_NAME_TEXT, new int[] { 60, 40 });
            AddForm(cellBuilder, MedicalBillBuilder.ENS_PR_ADDRESS_TEXT,
                    new int[] { 60, 40 });
            AddForm(cellBuilder, MedicalBillBuilder.ADDRESS_FIELDS_TEXT,
                    new int[] { 50, 25, 25 });
            AddForm(cellBuilder, MedicalBillBuilder.ENS_POLICY_TEXT, new int[] { 50, 50 });
            AddForm(cellBuilder, MedicalBillBuilder.ENS_RELATION_TEXT,
                    new int[] { 100 }, true,
                    new string[] { " " }, 0.5f, 2.0f, 13f);
            AddForm(cellBuilder, MedicalBillBuilder.ENS_SC_NAME_TEXT, new int[] { 60, 40 });
            AddForm(cellBuilder, MedicalBillBuilder.ENS_SC_ADDRESS_TEXT,
                    new int[] { 60, 40 });
            AddForm(cellBuilder, MedicalBillBuilder.ADDRESS_FIELDS_TEXT,
                    new int[] { 50, 25, 25 });
            AddForm(cellBuilder, MedicalBillBuilder.ENS_POLICY_TEXT, new int[] { 50, 50 });
            AddForm(cellBuilder, MedicalBillBuilder.ENS_RELATION_TEXT,
                    new int[] { 100 }, true);
        }
コード例 #2
0
        internal static void BuildHeaderWithBar(RepeatingAreaBuilder builder,
                                                float pageWidth)
        {
            var tableBuilder = builder.AddTable();

            tableBuilder
            .SetBorder(Stroke.None)
            .SetWidth(XUnit.FromPercent(100))
            .AddColumnPercentToTable("", 50)
            .AddColumnPercentToTable("", 50);
            var rowBuilder = tableBuilder.AddRow();

            rowBuilder.AddCell()
            .AddImage(Path.Combine("images", "ra-logo-2x.png"),
                      XSize.FromHeight(120));
            rowBuilder.AddCell()
            .SetHorizontalAlignment(HorizontalAlignment.Right)
            .AddImage(Path.Combine("images", "ra-barcode.png"),
                      XSize.FromHeight(120));
            builder.AddParagraph()
            .SetAlignment(HorizontalAlignment.Right)
            .SetUrlStyle(
                StyleBuilder.New()
                .SetFont(URL_FONT))
            .AddUrlToParagraph("http://www.bestlandlords.com/billing");
            builder.AddLine(pageWidth, 1.5f, Stroke.Solid, Color.Gray)
            .SetMarginTop(5);
        }
コード例 #3
0
        public void addConcertTable(SectionBuilder section)
        {
            var concertTable = section.AddTable()
                               .SetContentRowStyleBorder(borderBuilder =>
                                                         borderBuilder.SetStroke(Stroke.None));

            concertTable
            .SetWidth(XUnit.FromPercent(100))
            .AddColumnPercentToTable("", 20)
            .AddColumnPercentToTable("", 30)
            .AddColumnPercentToTable("", 20)
            .AddColumnPercentToTable("", 30);

            var row1Builder = concertTable.AddRow();

            AddLogoImage(row1Builder.AddCell("", 0, 2));
            AddConcertData(row1Builder.AddCell("", 3, 0)
                           .SetPadding(32, 0, 0, 0));

            var row2Builder = concertTable.AddRow();

            row2Builder.AddCell();
            No(row2Builder.AddCell("").SetFont(FNT10)
               .SetPadding(32, 0, 0, 0));
            FillTicketData(row2Builder.AddCell());
            FillPersonalInfo(row2Builder.AddCell());
        }
コード例 #4
0
        private void FillBottomBalanceTable(TableBuilder tableBuilder)
        {
            tableBuilder
            .SetWidth(XUnit.FromPercent(100)).SetBorder(Stroke.None)
            .SetContentRowBorderWidth(0, 0, 0, 0)
            .AddColumnPercentToTable("", 74)
            .AddColumnPercent("", 26);
            var rowBuilder  = tableBuilder.AddRow();
            var cellBuilder = rowBuilder.AddCell();

            cellBuilder
            .SetPadding(4)
            .SetBackColor(MedicalBillBuilder.BLUE_COLOR)
            .SetFont(FNT9B_W)
            .AddParagraphToCell("Current Balance");
            cellBuilder = rowBuilder.AddCell();
            cellBuilder
            .SetPadding(4)
            .SetHorizontalAlignment(HorizontalAlignment.Right)
            .SetBackColor(MedicalBillBuilder.BLUE_COLOR)
            .SetFont(FNT9B_W)
            .AddParagraphToCell(ps.Balance);
            rowBuilder  = tableBuilder.AddRow();
            cellBuilder = rowBuilder.AddCell();
            cellBuilder
            .SetColSpan(2)
            .SetFont(FNT9B_B)
            .AddParagraphToCell("This is your first notice for the visit above, which includes a list of itemized services rendered.");
            rowBuilder  = tableBuilder.AddRow();
            cellBuilder = rowBuilder.AddCell();
            cellBuilder
            .SetColSpan(2)
            .SetFont(FNT9)
            .AddParagraphToCell("We offer a Financial Aid program for qualified applicants. For more information, please call 123-456-7890 or visit our website at www.ourwebsite.com for more information.");
        }
コード例 #5
0
        public void addInfoTable(SectionBuilder section)
        {
            var infoTable = section.AddTable()
                            .SetContentRowStyleBorder(borderBuilder =>
                                                      borderBuilder.SetStroke(Stroke.None));

            infoTable
            .SetMarginTop(9f)
            .SetWidth(XUnit.FromPercent(100))
            .AddColumnPercentToTable("", 50)
            .AddColumnPercentToTable("", 25)
            .AddColumnPercentToTable("", 25);

            var row3Builder = infoTable.AddRow();

            FillRuleA(start: 0, end: 10, row3Builder.AddCell("").SetFont(FNT10));
            FillRuleP(row3Builder.AddCell("", 2, 0).SetFont(FNT10));

            var row4Builder = infoTable.AddRow();

            FillBandlist(row4Builder.AddCell("").SetFont(FNT12));
            row4Builder.AddCell("")
            .AddImage(Path.Combine("images", "CT_Location.png")).SetHeight(400)
            .SetMarginTop(9);
            AddContactInfo(row4Builder.AddCell("").SetFont(FNT12));
        }
コード例 #6
0
 public static TableCellBuilder AddFormRowBox(TableCellBuilder outerCellBuilder,
                                              string text = "$")
 {
     return(outerCellBuilder.AddTableToCell(tableBuilder =>
     {
         tableBuilder
         .SetWidth(XUnit.FromPercent(76))
         .SetContentRowStyleMinHeight(25)
         .SetAlignment(HorizontalAlignment.Right)
         .AddColumnPercentToTable("", 100)
         .SetBorderStroke(Stroke.Solid)
         .SetBorderColor(Color.Black)
         .SetBorderWidth(1.5f);
         var cellBuilder = tableBuilder.AddRow().SetMinHeight(25).AddCell();
         cellBuilder
         .SetVerticalAlignment(VerticalAlignment.Bottom)
         .SetPadding(0, 0, 0, 4)
         .AddParagraph()
         .AddTabSymbol()
         .SetFont(FNT7_2)
         .AddTabulation(6, TabulationType.Right, TabulationLeading.None)
         .AddTextToParagraph(text, addTabulationSymbol: true)
         .AddTabulation(72, TabulationType.Right, TabulationLeading.BottomLine);
     }));
 }
コード例 #7
0
        private void AddWhatsNext(SectionBuilder sectionBuilder)
        {
            var paragraphBuilder = sectionBuilder.AddParagraph("What's next?");

            paragraphBuilder.SetMarginTop(42).SetFont(FNT11B);
            sectionBuilder.AddLine(PageWidth, 2, Stroke.Solid);
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetWidth(XUnit.FromPercent(100))
            .SetBorder(Stroke.None)
            .AddColumnPercentToTable("", 50)
            .AddColumnPercent("", 50);
            int halfSize    = WhatsNextData.Count - WhatsNextData.Count / 2;
            var rowBuilder  = tableBuilder.AddRow();
            var cellBuilder = rowBuilder.AddCell();

            cellBuilder.SetPadding(0, 6, 4, 0).SetFont(FNT8);
            FillWhatNextHalf(0, halfSize, cellBuilder);
            cellBuilder = rowBuilder.AddCell();
            cellBuilder.SetPadding(4, 6, 0, 0).SetFont(FNT8);
            FillWhatNextHalf(halfSize, WhatsNextData.Count, cellBuilder);
            paragraphBuilder =
                sectionBuilder.AddParagraph("Have a good flight!");
            paragraphBuilder
            .SetAlignment(HorizontalAlignment.Center)
            .SetMarginTop(20)
            .SetMarginBottom(30)
            .SetFont(FNT17);
            sectionBuilder
            .AddLine(PageWidth, 0.5f, Stroke.Dashed).SetMarginBottom(24);
        }
        private void FillGeneralStatementPoliciesTable(TableBuilder tableBuilder)
        {
            tableBuilder
            .SetBorder(Stroke.None)
            .SetMarginTop(10)
            .SetMarginBottom(6)
            .SetWidth(XUnit.FromPercent(100))
            .AddColumnPercentToTable("", 50)
            .AddColumnPercent("", 50);
            var tableRowBuilder  = tableBuilder.AddRow();
            var paragraphBuilder = tableRowBuilder.AddCell().AddParagraph();

            paragraphBuilder
            .AddTextToParagraph("Notice", FNT7_2B)
            .AddTextToParagraph(": " +
                                statementInfo.BankName + ", " +
                                statementInfo.BankNameState +
                                " may furnish information about accounts belonging to individuals, including sole proprietorships, to consumer reporting agencies.  If this applies to you, you have the right to dispute the accuracy of information that we have reported by writing to us at: "
                                + statementInfo.ReportAddress + ".",
                                FNT7_2);
            tableRowBuilder
            .AddCell("You must describe the specific information that is inaccurate or in dispute and the basis for any dispute with supporting documentation.  In the case of information that relates to an identity theft, you will need to provide us with an identity theft report.")
            .SetFont(FNT7_2)
            .SetPadding(8, 0, 0, 0);
        }
コード例 #9
0
        private void BuildHead(SectionBuilder sectionBuilder)
        {
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetContentRowStyleFont(FNT9)
            .SetBorder(Stroke.None)
            .SetWidth(XUnit.FromPercent(100))
            .AddColumnPercentToTable("", 33)
            .AddColumnPercentToTable("", 33)
            .AddColumnPercentToTable("", 17)
            .AddColumnPercent("", 17);
            var rowBuilder  = tableBuilder.AddRow();
            var cellBuilder = rowBuilder.AddCell();

            cellBuilder.SetPadding(0, 0, 4, 0);
            var paragraphBuilder = cellBuilder.AddParagraph();

            paragraphBuilder
            .AddInlineImage(Path.Combine(ps.ImageDir, "MB_Logo_2x.png"));
            cellBuilder = rowBuilder.AddCell();
            cellBuilder.SetPadding(4, 0, 4, 0);
            paragraphBuilder = cellBuilder.AddParagraph();
            paragraphBuilder
            .AddInlineImage(Path.Combine(ps.ImageDir, "Clinicare_2x.png"))
            .SetAlignment(HorizontalAlignment.Center);
            cellBuilder = rowBuilder.AddCell();
            cellBuilder.SetColSpan(2).SetPadding(4, 0, 0, 0);
            paragraphBuilder = cellBuilder.AddParagraph();
            paragraphBuilder
            .AddInlineImage(Path.Combine(ps.ImageDir, "Healthcare_2x.png"))
            .SetAlignment(HorizontalAlignment.Right);
            rowBuilder  = tableBuilder.AddRow();
            cellBuilder = rowBuilder.AddCell();
            cellBuilder
            .SetPadding(4)
            .AddParagraphToCell(ps.CenterName + "\n" +
                                ps.CenterAddress);
            cellBuilder = rowBuilder.AddCell();
            cellBuilder
            .SetPadding(4)
            .AddParagraphToCell("To Contact Us Call:  " +
                                ps.CenterPhone +
                                "\n\nPhone representatives are available:\n8am to 8pm Monday - Thursday\nand 8am to 4:30pm Friday");
            cellBuilder = rowBuilder.AddCell();
            cellBuilder
            .SetPadding(4)
            .AddParagraphToCell("Guarantor Number:\nGuarantor Name:\nStatement Date:\nDue Date:");
            cellBuilder = rowBuilder.AddCell();
            cellBuilder
            .SetPadding(4)
            .AddParagraphToCell(
                ps.GuarantorNumber + "\n" +
                ps.GuarantorName + "\n" +
                ps.StatementDate + "\nUpon Receipt")
            .SetHorizontalAlignment(HorizontalAlignment.Right);
        }
コード例 #10
0
 public static TableBuilder CreateTable(SectionBuilder sectionBuilder,
                                        int columnNumber, float topMargin = 13)
 {
     return(sectionBuilder
            .AddTable(Enumerable.Repeat(XUnit.FromPercent(100f / columnNumber),
                                        columnNumber).ToArray())
            .SetMarginTop(topMargin)
            .SetBorder(Stroke.None)
            .SetContentRowBorderWidth(0, 0, 0, 0));
 }
 private void ConfigureDescriptionTable(TableBuilder tableBuilder,
                                        float firstColumnPercent, float secondColumnPercent)
 {
     tableBuilder
     .SetWidth(XUnit.FromPercent(100))
     .SetBorder(Stroke.None)
     .SetAltRowStyleBackColor(Color.White)
     .AddColumnPercentToTable("", firstColumnPercent)
     .AddColumnPercentToTable("", secondColumnPercent)
     .SetAlignment(HorizontalAlignment.Left);
 }
コード例 #12
0
        private void FillTopLogoBarTable(TableBuilder tableBuilder)
        {
            tableBuilder
            .SetWidth(XUnit.FromPercent(100))
            .SetBorder(Stroke.None)
            .AddColumnPercentToTable("", 75)
            .AddColumnPercent("", 25);
            var rowBuilder = tableBuilder.AddRow();

            rowBuilder.AddCell().AddTable(FillLogoTable);
            rowBuilder.AddCell(FillBarTableCell);
        }
        private void AddClientTable(SectionBuilder sectionBuilder)
        {
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetWidth(XUnit.FromPercent(100)).SetBorder(Stroke.None)
            .AddColumnPercentToTable("", 50).AddColumnPercent("", 50);
            var rowBuilder = tableBuilder.AddRow();

            rowBuilder.AddCell().AddTable(FillAboutYouTable);
            rowBuilder.AddCell().AddTable(FillInsuranceTable);
        }
コード例 #14
0
        private void FillLogoTable(TableBuilder tableBuilder)
        {
            tableBuilder
            .SetWidth(XUnit.FromPercent(40))
            .SetBorder(Stroke.None)
            .AddColumnPercentToTable("", 25)
            .AddColumnPercent("", 75);
            var rowBuilder = tableBuilder.AddRow();

            AddLogoImage(rowBuilder.AddCell());
            AddCompanyName(rowBuilder.AddCell());
        }
 private void ConfigureDescriptionFormTable(TableBuilder tableBuilder,
                                            float descriptionColumnPercent = 64, float formColumnPercent = 36)
 {
     tableBuilder
     .SetMarginTop(1f)
     .SetWidth(XUnit.FromPercent(100))
     .SetBorder(Stroke.None)
     .SetAltRowStyleBackColor(Color.White)
     .AddColumnPercentToTable("", descriptionColumnPercent)
     .AddColumnPercentToTable("", formColumnPercent)
     .SetAlignment(HorizontalAlignment.Left);
 }
コード例 #16
0
 private void FillCallCentersTable(TableBuilder tableBuilder)
 {
     tableBuilder
     .SetBorder(Stroke.None)
     .SetWidth(XUnit.FromPercent(70))
     .AddColumnPercentToTable("", 40).AddColumnPercent("", 60);
     AddCallCenters(tableBuilder, new Field[] {
         new Field("TTY:", statementInfo.TTY)
         , new Field("Online:", statementInfo.Online)
         , new Field("Write:", statementInfo.White)
     });
 }
        private void AddBalanceCalc(RepeatingAreaBuilder builder)
        {
            var tableBuilder = builder.AddTable();

            tableBuilder
            .SetWidth(XUnit.FromPercent(90))
            .SetBorder(Stroke.Solid, Color.Black, 0.5f)
            .SetAltRowStyleBackColor(Color.White)
            .AddColumnPercentToTable("", 20)
            .AddColumnPercentToTable("", 60)
            .AddColumnPercentToTable("", 20)
            .SetAlignment(HorizontalAlignment.Right);
            var rowBuilder = tableBuilder.AddRow();

            foreach (string head in new string[] {
                "Number",
                "Items Outstanding",
                "Amount"
            })
            {
                rowBuilder
                .AddCell(head).ApplyStyle(
                    StyleBuilder.New()
                    .SetBorderStroke(Stroke.None)
                    .SetFont(FNT7B)
                    .SetHorizontalAlignment(
                        HorizontalAlignment.Center)
                    );
            }
            for (int i = 0; i < 26; i++)
            {
                rowBuilder = tableBuilder.AddRow();
                rowBuilder.AddCellToRow(" ").AddCellToRow(" ").AddCellToRow(" ");
            }
            rowBuilder = tableBuilder.AddRow();
            var cellBuilder = rowBuilder
                              .AddCell("Total amount  $");

            cellBuilder
            .ApplyStyle(
                StyleBuilder.New()
                .SetBorderStroke(Stroke.None)
                .SetFont(FNT7B)
                .SetHorizontalAlignment(
                    HorizontalAlignment.Right)
                .SetVerticalAlignment(
                    VerticalAlignment.Bottom)
                )
            .SetColSpan(2)
            .SetPadding(0, 0, 4, 0);
            rowBuilder
            .AddCellToRow(" ");
        }
コード例 #18
0
        private void FillRouteInfoTable(TableBuilder tableBuilder)
        {
            tableBuilder
            .SetWidth(XUnit.FromPercent(100))
            .SetBorder(Stroke.None)
            .AddColumnPercentToTable("", 17)
            .AddColumnPercentToTable("", 16)
            .AddColumnPercentToTable("", 17)
            .AddColumnPercentToTable("", 17)
            .AddColumnPercentToTable("", 17)
            .AddColumnPercent("", 16);
            var rowBuilder = tableBuilder.AddRow();

            rowBuilder
            .ApplyStyle(
                StyleBuilder.New()
                .SetFont(FNT9B_G)
                .SetPaddingTop(4.8f)
                .SetPaddingBottom(8.2f)
                );
            foreach (string headName in ROUTE_HEADS)
            {
                rowBuilder.AddCell(headName);
            }
            foreach (RouteData rd in RouteData)
            {
                rowBuilder = tableBuilder.AddRow();
                rowBuilder
                .ApplyStyle(
                    StyleBuilder.New()
                    .SetFont(FNT10)
                    .SetPaddingTop(3.5f)
                    .SetPaddingBottom(7.5f)
                    );
                foreach (string cellValue in FirstRouteRow(rd))
                {
                    rowBuilder.AddCell(cellValue);
                }
                rowBuilder = tableBuilder.AddRow();
                rowBuilder
                .ApplyStyle(
                    StyleBuilder.New()
                    .SetFont(FNT7)
                    .SetPaddingBottom(5.5f)
                    .SetBorderBottom(0.5f, Stroke.Solid, Color.Black)
                    );
                foreach (string cellValue in SecondRouteRow(rd))
                {
                    rowBuilder.AddCell(cellValue);
                }
            }
        }
コード例 #19
0
        protected void AddRadioButtons(TableCellBuilder cellBuilder, string label,
                                       string[] choices, int[] widths, bool bottomBorder = false)
        {
            string[] labels = choices;
            if (label != null)
            {
                labels    = new string[choices.Length + 1];
                labels[0] = label;
                for (int i = 1, l = labels.Length; i < l; i++)
                {
                    labels[i] = choices[i - 1];
                }
            }
            int wl = widths.Length;

            if (labels.Length > 0 && wl > 0)
            {
                int lastWidth = widths[widths.Length - 1];
                cellBuilder.AddTable(tableBuilder =>
                {
                    tableBuilder
                    .SetWidth(XUnit.FromPercent(100))
                    .SetBorder(Stroke.None);

                    for (int i = 0, l = labels.Length; i < l; i++)
                    {
                        tableBuilder.AddColumnPercent("", i < wl ? widths[i] : lastWidth);
                    }
                    var rowBuilder = tableBuilder.AddRow();
                    rowBuilder
                    .SetBorder(borderBuilder =>
                    {
                        borderBuilder
                        .SetRightWidth(0)
                        .SetTopBorder(0.5f, Stroke.Solid, null)
                        .SetLeftWidth(0);
                        if (bottomBorder)
                        {
                            borderBuilder.SetTopBorder(0.5f, Stroke.Solid, null);
                        }
                        else
                        {
                            borderBuilder.SetBottomWidth(0);
                        }
                    });
                    for (int i = 0, l = labels.Length; i < l; i++)
                    {
                        AddRadioCellsToRow(rowBuilder, labels, i);
                    }
                });
            }
        }
        protected void AddTextTitle(TableCellBuilder cellBuilder, int pageCount, float topMargin)
        {
            var tableBuilder = cellBuilder.AddTable();

            tableBuilder
            .SetMarginTop(topMargin)
            .SetBorder(Stroke.None)
            .SetWidth(XUnit.FromPercent(70))
            .AddColumnPercentToTable("", 23)
            .AddColumnPercentToTable("", 18)
            .AddColumnPercentToTable("", 42)
            .AddColumnPercent("", 17);
            AddStatementInfoToTitle(tableBuilder.AddRow(), pageCount);
        }
コード例 #21
0
        private void BuildPayment(SectionBuilder sectionBuilder)
        {
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetWidth(XUnit.FromPercent(100)).SetBorder(Stroke.None)
            .AddColumnPercentToTable("", 50)
            .AddColumnPercent("", 50);
            var rowBuilder = tableBuilder.AddRow();

            rowBuilder
            .AddCellToRow(BuildCheck)
            .AddCellToRow(BuilCard);
        }
コード例 #22
0
        private void FillBottomLogoETKTable(TableBuilder tableBuilder)
        {
            tableBuilder
            .SetWidth(XUnit.FromPercent(96))
            .SetBorder(Stroke.None)
            .AddColumnPercentToTable("", 8)
            .AddColumnPercentToTable("", 72)
            .AddColumnPercent("", 20);
            var rowBuilder = tableBuilder.AddRow();

            AddLogoImage(rowBuilder.AddCell());
            AddCompanyName(rowBuilder.AddCell());
            AddETK(rowBuilder
                   .AddCell().SetHorizontalAlignment(HorizontalAlignment.Right));
        }
コード例 #23
0
        private void BuildFareAndHelp(SectionBuilder sectionBuilder)
        {
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetMarginTop(30)
            .SetWidth(XUnit.FromPercent(100))
            .SetBorder(Stroke.None)
            .AddColumnPercentToTable("", 51)
            .AddColumnPercent("", 49);
            var tableRowBuilder = tableBuilder.AddRow();

            tableRowBuilder.AddCellToRow(BuildFare);
            tableRowBuilder.AddCellToRow(BuildHelp);
        }
コード例 #24
0
 internal void Build(SectionBuilder sectionBuilder, int pageCount)
 {
     sectionBuilder
     .AddFooterToBothPages(45)
     .AddLine(PageWidth, 2)
     .ToArea()
     .AddTable()
     .SetBorderStroke(Stroke.None)
     .SetWidth(XUnit.FromPercent(100))
     .AddColumnPercentToTable("", 65)
     .AddColumnPercentToTable("", 35)
     .AddRow()
     .AddCell()
     .SetPadding(0, 1, 0, 0)
     .AddParagraph("FINAL REPORT")
     .SetMarginTop(1)
     .SetFont(FNT10B)
     .AddTabSymbol()
     .AddTabulationInPercent(62)
     .AddText("Date Issued: " + reportInfoData.Date)
     .SetFont(FNT8)
     .ToRow()
     .AddCell()
     .AddParagraph()
     .SetFont(FNT8)
     .SetAlignment(HorizontalAlignment.Right)
     .AddPageNumber("Page ")
     .ToParagraph()
     .AddText(" of " + pageCount)
     .ToTable()
     .AddRow()
     .AddCell()
     .SetFont(FNT7Half)
     .AddParagraph("This document contains private and confidential " +
                   "health information protected by state and federal law.")
     .SetMarginTop(3)
     .SetLineSpacing(1)
     .ToCell()
     .AddParagraph("If you have received this document in error, " +
                   "please call " + reportInfoData.Phone)
     .ToRow()
     .AddCell()
     .SetHorizontalAlignment(HorizontalAlignment.Right)
     .SetFont(FNT7Half)
     .AddParagraph(reportInfoData.Copyright)
     .ToCell()
     .AddParagraph(reportInfoData.Version);
 }
コード例 #25
0
        private void ImageThenText(TableBuilder tableBuilder, BoardingCell bi)
        {
            tableBuilder
            .SetWidth(XUnit.FromPercent(100))
            .SetBorder(Stroke.None)
            .AddColumnToTable("", 13)
            .AddColumn("");
            var rowBuilder = tableBuilder.AddRow();

            rowBuilder.AddCell()
            .SetPadding(0, 4, 0, 0)
            //.SetVerticalAlignment(VerticalAlignment.Bottom)
            .AddImage(Path.Combine("images", bi.image),
                      XSize.FromWidth(11));
            TextOnly(rowBuilder.AddCell().AddParagraph(), bi);
        }
コード例 #26
0
        private void AddYourFeedBack(SectionBuilder sectionBuilder)
        {
            var tableBuilder = sectionBuilder.AddTable();

            tableBuilder
            .SetBorder(Stroke.None)
            .SetContentRowBorderWidth(0, 0, 0, 0)
            .ApplyStyle(
                StyleBuilder.New()
                .SetHorizontalAlignment(HorizontalAlignment.Left)
                )
            .SetMarginTop(10)
            .SetWidth(XUnit.FromPercent(54))
            .AddColumnPercentToTable("", 7)
            .AddColumnPercent("", 93);
            var tableRowBuilder = tableBuilder.AddRow();

            tableRowBuilder.AddCell(CHECK_BOX).SetFont(FNTZ8);
            var cellBuilder      = tableRowBuilder.AddCell();
            var paragraphBuilder = cellBuilder.AddParagraph();

            paragraphBuilder
            .SetUrlStyle(
                StyleBuilder.New().SetFont(FNT7_5URL)
                )
            .AddTextToParagraph(
                "Your feedback matters\n", FNT7_9B
                )
            .AddTextToParagraph(
                "Share your compliments and complaints so we can better serve you.\n" +
                "Call us at " +
                statementInfo.FeedBackPhone +
                "(" + statementInfo.Phone +
                ") or visit ",
                FNT7_5
                )
            .AddUrlToParagraph(
                "https://" +
                statementInfo.Online +
                "/feedback",
                statementInfo.Online + "/feedback"
                )
            .AddTextToParagraph(
                ".",
                FNT7_5
                );
        }
コード例 #27
0
        private void FillBoardingHandBugTable(TableBuilder tableBuilder, BoardingCell[,] boardingItems)
        {
            tableBuilder
            .SetWidth(XUnit.FromPercent(100))
            .SetBorder(Stroke.None)
            .AddColumnToTable("", 415.5f)
            .AddColumn("", 138.5f);
            FillBoardingTableFirstRow(tableBuilder, boardingItems[0, 0]);
            var rowBuilder = tableBuilder.AddRow();

            rowBuilder.AddCell().AddTable(builder =>
            {
                builder.SetWidth(415.5f);
                FillBoardingTable(builder, boardingItems, 1);
            });
            rowBuilder.AddCell(FillHandBugTableCell);
        }
コード例 #28
0
        public void AddTradeFooter(SectionBuilder section)
        {
            var footerTable = section.AddTable()
                              .SetContentRowStyleBorder(borderBuilder =>
                                                        borderBuilder.SetStroke(Stroke.None));

            footerTable
            .SetWidth(XUnit.FromPercent(100))
            .AddColumnPercentToTable("", 15)
            .AddColumnPercentToTable("", 85);

            var row23Builder = footerTable.AddRow();

            row23Builder.AddCell();
            Info(row23Builder.AddCell("").SetFont(FNT9)
                 .SetPadding(0, 18, 0, 0));
        }
コード例 #29
0
        private void BuildBeforeCut(SectionBuilder sectionBuilder)
        {
            var outerTableBuilder = sectionBuilder.AddTable();

            outerTableBuilder
            .SetWidth(XUnit.FromPercent(100)).SetBorder(Stroke.None)
            .AddColumnPercentToTable("", 50)
            .AddColumnPercent("", 50);
            var rowBuilder  = outerTableBuilder.AddRow();
            var cellBuilder = rowBuilder.AddCell();

            cellBuilder
            .SetFont(FNT9).SetPadding(0, 8, 0, 0)
            .AddParagraphToCell("MESSAGES:\nWe have filed the medical claims with your insurance.They have\nindicated the balance is your responsibility. To pay your DIN online,\nplease visit www.ourwebsite.com.\n\nIf you have questions regarding your bill, or for payment arrangements, please call 123 - 456 - 78 or send an email inquiry to [email protected]");
            cellBuilder = rowBuilder.AddCell();
            cellBuilder.AddTable(FillBottomBalanceTable);
        }
コード例 #30
0
 private void FillTicketInfoTable(TableBuilder tableBuilder, string[,] ticketData)
 {
     tableBuilder
     .SetWidth(XUnit.FromPercent(100))
     .SetBorder(Stroke.None)
     .SetContentRowStyleFont(FNT10)
     .AddColumnPercentToTable("", 25)
     .AddColumnPercentToTable("", 25)
     .AddColumnPercentToTable("", 25)
     .AddColumnPercent("", 25);
     for (int i = 0, len = (ticketData.Length >> 2), j = len + i; i < len; i++, j++)
     {
         var rowBuilder  = tableBuilder.AddRow();
         var cellBuilder = rowBuilder.AddCell(ticketData[i, 0]);
         cellBuilder
         .SetPadding(0, 3.5f, 0, 8.5f)
         .SetBorderWidth(0, 0, 0, 0.5f)
         .SetBorderStroke(
             Stroke.None, Stroke.None, Stroke.None, Stroke.Solid);
         cellBuilder = rowBuilder.AddCell(ticketData[i, 1]);
         cellBuilder
         .SetHorizontalAlignment(HorizontalAlignment.Right)
         .SetPadding(0, 3.5f, 0, 8.5f)
         .SetBorderWidth(0, 0, 10, 0.5f)
         .SetBorderColor(
             Color.Black, Color.Black, Color.White, Color.Black)
         .SetBorderStroke(
             Stroke.None, Stroke.None, Stroke.Solid, Stroke.Solid);
         cellBuilder = rowBuilder.AddCell(ticketData[j, 0]);
         cellBuilder
         .SetPadding(0, 3.5f, 0, 8.5f)
         .SetBorderWidth(10, 0, 0, 0.5f)
         .SetBorderColor(
             Color.White, Color.Black, Color.Black, Color.Black)
         .SetBorderStroke(
             Stroke.Solid, Stroke.None, Stroke.None, Stroke.Solid);
         cellBuilder = rowBuilder.AddCell(ticketData[j, 1]);
         cellBuilder
         .SetHorizontalAlignment(HorizontalAlignment.Right)
         .SetPadding(0, 3.5f, 0, 8.5f)
         .SetBorderWidth(0, 0, 0, 0.5f)
         .SetBorderStroke(
             Stroke.None, Stroke.None, Stroke.None, Stroke.Solid);
     }
 }