Exemple #1
0
 public WorkTemplate()
 {
     Experience   = new InfoBlockDocument();
     ProfileImage = new ImageDocument();
     Name         = new TextDocument();
     ContactInfo  = new InfoBlockDocument();
     Birthday     = new TextDocument();
 }
Exemple #2
0
        private IBlockElement[] GetBlock(InfoBlockDocument infoBlock)
        {
            List <IBlockElement> result = new List <IBlockElement>();

            float headerScale = 1.4f;

            result.Add(new Paragraph(infoBlock.Header).SetFont(Font).SetFontSize(FontSize * headerScale));

            List listPdf = new List().SetFont(Font).SetFontSize(FontSize); // package list not usual one

            foreach (var item in infoBlock.Info)
            {
                listPdf.Add(new ListItem(item));
            }
            result.Add(listPdf);

            return(result.ToArray());
        }