public static PdfPCell instance(string content, float font_size, bool font_bold, UIPadding padding) { if (content.isNull()) { content = " "; } var cell = new PdfPCell(new Paragraph(content, PDFFontUtil.instance(font_size, font_bold))); cell.setNoBorder(); cell.setPadding(padding); cell.VerticalAlignment = Element.ALIGN_MIDDLE; cell.BackgroundColor = BaseColor.White; return(cell); }
public static Font pdfFont(this UIFont font) { return(PDFFontUtil.instance(font)); }