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); }
internal static void BuildHeader(RepeatingAreaBuilder builder, float pageWidth) { builder .AddImage(Path.Combine("images", "ra-logo-2x.png"), XSize.FromHeight(60)); builder.AddLine(pageWidth, 1.5f, Stroke.Solid, Color.Gray) .SetMarginTop(5); }
internal static void BuildEqualHousingOpportunity(RepeatingAreaBuilder builder, float pageHeight) { builder .AddImage(Path.Combine("images", "equal-housing-opportunity-logo-160w.png"), XSize.FromHeight(64)) .SetMarginTop(pageHeight - 66f); }
internal static void BuildFooterEqualHousingOpportunity( RepeatingAreaBuilder builder) { builder .AddImage(Path.Combine("images", "equal-housing-opportunity-logo-1200w.png"), XSize.FromHeight(80)) .SetAlignment(HorizontalAlignment.Left); BuildFooter(builder); }
private void FillHandBugTableCell(TableCellBuilder cellBuilder) { cellBuilder .SetPadding(19, 6, 0, 0) .AddParagraph("Hand baggage allowance") .SetFont(FNT9) .SetMarginBottom(19); cellBuilder.AddImage( Path.Combine("images", "BP_handbag_2x.png"), XSize.FromHeight(108)); }
internal static void BuildFooterBar(RepeatingAreaBuilder builder, float barImageHeight) { var tableBuilder = builder.AddTable(); tableBuilder .SetBorder(Stroke.None) .SetWidth(XUnit.FromPercent(100)) .AddColumnPercentToTable("", 40) .AddColumnPercentToTable("", 42) .AddColumnPercentToTable("", 10) .AddColumnPercentToTable("", 8); var rowBuilder = tableBuilder.AddRow(); rowBuilder.SetVerticalAlignment(VerticalAlignment.Bottom); rowBuilder.AddCell() .SetPadding(40, 0, 0, 0) .SetFont(FNT11) .SetHorizontalAlignment(HorizontalAlignment.Right) .AddParagraph() .SetAlignment(HorizontalAlignment.Left) .AddTextToParagraph("Initials ", INITALS_FONT, true) .AddTabulation(140, TabulationType.Left, TabulationLeading.BottomLine); rowBuilder .AddCell() .SetHorizontalAlignment(HorizontalAlignment.Right) .SetPadding(0, 0, 5, 0) .AddParagraph() .SetUrlStyle( StyleBuilder.New() .SetFontColor(Color.Red) .SetFont(URL_FONT)) .AddUrlToParagraph("http://www.bestlandlords.com/billing"); rowBuilder .AddCell() .AddImage(Path.Combine("images", "ra-barcode.png"), XSize.FromHeight(barImageHeight)); rowBuilder.AddCell().AddParagraph() .SetAlignment(HorizontalAlignment.Right) .AddTextToParagraph(" ", PAGE_NUMBER_FONT, true) .AddTextToParagraph("Page ", PAGE_NUMBER_FONT) .AddPageNumber().SetFont(PAGE_NUMBER_FONT); }
private void BuildHeader(RepeatingAreaBuilder builder) { var tableBuilder = builder.AddTable(); tableBuilder .SetWidth(XUnit.FromPercent(50)) .SetBorder(Stroke.None) .AddColumnPercentToTable("", 25).AddColumnPercent("", 75); var rowBuilder = tableBuilder.AddRow(); var cellBuilder = rowBuilder.AddCell(); cellBuilder.AddImage(Path.Combine("images", "AT_Logo_2x.png"), XSize.FromHeight(80)); cellBuilder = rowBuilder.AddCell() .SetVerticalAlignment(VerticalAlignment.Center) .SetPadding(17, 0, 0, 0); cellBuilder .AddParagraph(TicketData.Company + " company").SetFont(FNT20B); cellBuilder .AddParagraph("E-ticket").SetFont(FNT20); }
private void FillBottomBarTableCell(TableCellBuilder cellBuilder) { cellBuilder.AddImage(Path.Combine("images", "BP_barcode_vert_2x.png"), XSize.FromHeight(276)); }
private void AddLogoImage(TableCellBuilder cellBuilder) { cellBuilder.AddImage(Path.Combine("images", "BP_Logo_2x.png"), XSize.FromHeight(50)); }