public static Phrase GetPhrase(ResumeParagraph resumeParagraph) { var font = GetPdfFont(resumeParagraph.ResumeFont); var result = new Phrase(resumeParagraph.Text, font); return(result); }
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); }
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); }
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); }
protected override void RenderParagraph(ResumeParagraph resumeParagraph) { var wordParagraph = WordConverter.GetWordParagraph(resumeParagraph); this.body.AppendChild(wordParagraph); }
protected abstract void RenderParagraph(ResumeParagraph resumeParagraph);