private static CreateChapter AddSectionAndSubSectionBySetLine(CreateChapter chapter, string topicSection, string topicSubSection, string titleChart, Image pic, KeyValuePair <object, System.Drawing.Image> image, Dictionary <object, List <PdfPTable> > pdfPTables)
 {
     chapter.AddSection(FontPolish(topicSection), 2);
     chapter.AddSubSection(FontPolish(topicSubSection), 3);
     chapter.createSubSection.AddTitleCHart(FontTitleChart(titleChart), pic.Width);
     chapter.createSubSection.AddImage(pic);
     vs.Add(ConvertImage(image.Value));
     SetLine(image, chapter.createSection, pdfPTables);
     return(chapter);
 }
        private static CreateChapter AddSubSection(CreateChapter chapter, string topicSubSection, string titleChart, Image pic, KeyValuePair <object, System.Drawing.Image> image, Dictionary <object, List <PdfPTable> > pdfPTables)
        {
            Paragraph elements = FontPolish(topicSubSection);

            elements.IndentationLeft = 40f;
            chapter.AddSubSection(elements, 3);
            chapter.createSubSection.AddTitleCHart(FontTitleChart(titleChart), pic.Width);
            chapter.createSubSection.AddImage(pic);
            vs.Add(ConvertImage(image.Value));
            Set(image, chapter.createSubSection, pdfPTables);
            return(chapter);
        }