public DocumentModel CreateDiplomas(StudentModel student) { ComponentInfo.SetLicense("FREE-LIMITED-KEY"); var document = new DocumentModel(); var firstParagraphText = stringCreator.GetFirstParagraph(student.LastName, student.FirstName); var secondParagraphText = stringCreator.GetSecondParagraphText(student.Grades); document.Sections.Add(new Section(document, new List <Paragraph>() { new Paragraph(document, firstParagraphText), new Paragraph(document, secondParagraphText) })); return(document); }