Example #1
0
        public static Phrase GetPhrase(ResumeParagraph resumeParagraph)
        {
            var font   = GetPdfFont(resumeParagraph.ResumeFont);
            var result = new Phrase(resumeParagraph.Text, font);

            return(result);
        }
Example #2
0
        protected override void RenderParagraph(ResumeParagraph resumeParagraph)
        {
            var pdfFont = PdfConverter.GetPdfFont(resumeParagraph.ResumeFont);

            var paragraph = new Paragraph(resumeParagraph.Text, pdfFont)
            {
                Alignment = PdfConverter.TextAlignment(resumeParagraph.HorisontalAlignment),
            };

            this.document.Add(paragraph);
        }
Example #3
0
        public static ParagraphProperties GetParagraphProperties(ResumeParagraph resumeParagraph, IEnumerable <OpenXmlElement> insertBefore = null)
        {
            var pargraphProperties = new ParagraphProperties();

            if (insertBefore != null)
            {
                pargraphProperties.Append(insertBefore);
            }

            pargraphProperties.AppendChild(GetJustification(resumeParagraph.HorisontalAlignment));

            return(pargraphProperties);
        }
Example #4
0
        public static Paragraph GetWordParagraph(ResumeParagraph resumeParagraph)
        {
            var wordParagraph = new Paragraph();

            wordParagraph.AppendChild(GetParagraphProperties(resumeParagraph));

            var run           = wordParagraph.AppendChild(new Run());
            var runProperties = GetRunProperties(resumeParagraph.ResumeFont);

            run.AppendChild(runProperties);

            run.Append(CreateLineBreaks(resumeParagraph.Text));

            return(wordParagraph);
        }
Example #5
0
        protected override void RenderParagraph(ResumeParagraph resumeParagraph)
        {
            var wordParagraph = WordConverter.GetWordParagraph(resumeParagraph);

            this.body.AppendChild(wordParagraph);
        }
Example #6
0
 protected abstract void RenderParagraph(ResumeParagraph resumeParagraph);