private void AddLogoImage(TableCellBuilder cellBuilder) { cellBuilder .SetPadding(2, 2, 2, 0); cellBuilder .AddImage(Path.Combine("images", "СT_Poster.png")).SetHeight(340); }
private void AddCardHead(TableCellBuilder outerCellBuilder) { outerCellBuilder.SetPadding(0, 6, 0, 0); var paragraphBuilder = outerCellBuilder.AddParagraph(); paragraphBuilder .SetFont(FNT7B) .AddTextToParagraph("IF PAYING BY VISA, MASTERCARD, DISCOVER OR AMEX, FILL OUT BELOW"); outerCellBuilder.AddTable(FillCardNames); }
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)); }
private void AddCalculateEndingBalanceDescriptionToCell( TableCellBuilder cellBuilder, string[] text) { cellBuilder .SetPadding(0, 10, 0, 0) .SetBorderStroke(Stroke.None, Stroke.None, Stroke.None, Stroke.None); for (int i = 0, l = text.Length; i < l; i++) { string item = text[i]; var font = i == 0 ? FNT7_2B : FNT7_2; ParagraphBuilder paragraphBuilder = cellBuilder.AddParagraph(); paragraphBuilder .SetFont(font) .AddText(item); } }