internal static SectionBuilder AddLastFooter(this SectionBuilder s) { s.AddFooterToBothPages(45) .AddParagraph() .AddPageNumber(); return(s); }
internal static void AddFooters(SectionBuilder section, string text) { var imageUrlLogo = Path.Combine(ProjectDir, "images", "DocumentExample", "LearnCLogo30_30.jpg"); section.AddFooterToBothPages(40) .AddLine() .SetColor(ColorBackground).SetStroke(Stroke.Solid).SetWidth(1f) .ToArea() .AddParagraph() .SetMargins(0, 5, 0, 0).SetFont(DocumentFontBoldOrange) .AddInlineImageToParagraph(imageUrlLogo, new XSize(15, 15), ScalingMode.UserDefined) .AddTextToParagraph(text) .AddUrl("http://www.gehtsoftusa.com/", "GEHTSOFT USA LLC.") .SetFont(DocumentFontBoldOrange) .SetUnderlineColor(ColorBackground); section.AddFooterToBothPages(15f) .AddParagraph() .AddPageNumberToParagraph(" Page #", 1, SmallFont) .SetAlignment(HorizontalAlignment.Right); }
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); }
internal static SectionBuilder AddFooter(this SectionBuilder s) { s.AddFooterToBothPages(50) .AddParagraph() .SetMargins(0, 18, 0, 0) .AddPageNumberToParagraph() .AddTabSymbol() .AddTabSymbol() .AddTabulationInPercent(60, TabulationType.Left) .AddTabulationInPercent(100, TabulationType.Right, TabulationLeading.BottomLine) .ToArea() .AddParagraph() .AddTabSymbol() .AddTextToParagraph("(Initials)") .AddTabulationInPercent(80, TabulationType.Center); return(s); }
private static SectionBuilder AddFooter(this SectionBuilder s) { RepeatingAreaBuilder footer = s.AddFooterToBothPages(160); footer .AddLine() .SetColor(Color.FromRgba(106.0 / 255.0, 85.0 / 255.0, 189.0 / 255.0)) .SetStroke(Stroke.Solid) .SetWidth(2); footer .AddParagraph() .SetMargins(0, 20, 0, 10) .AddText("Your Home Provider") .SetFont(BoldFont); footer .AddParagraph() .SetMargins(0, 0, 0, 0) .SetFont(FooterFont) .AddTextToParagraph("Your Home Provider, Inc.") .AddTabSymbol() .AddUrlToParagraph("*****@*****.**") .AddTabulation(280); footer .AddParagraph() .SetMargins(0, 0, 0, 0) .SetFont(FooterFont) .AddTextToParagraph("200 John Doe Street") .AddTabSymbol() .AddUrlToParagraph("https://yourhomeprovider.com") .AddTabulation(280); footer .AddParagraph() .SetMargins(0, 0, 0, 0) .SetFont(FooterFont) .AddText(new[] { "Santa Barbara, CA 000001", "United States" }); footer .AddParagraph() .SetMargins(0, 0, 0, 0) .SetFont(FooterFont) .AddText("*VAT / GST paid directly by Your Home Provider, Inc., where applicable"); return(s); }