/// <summary> /// collect all pages to pdf format, also make table of content in pdf file /// </summary> /// <param name="outputPath">output file path</param> /// <param name="font">font for table of content</param> /// <param name="fontSizeInfo">size of information text</param> /// <param name="fontSizeHeader">size of header text</param> /// <param name="pageSize">page size of information and table of content</param> public void CollectContentToPdf(string outputPath, PdfFont font, float fontSizeInfo, float fontSizeHeader, iText.Kernel.Geom.PageSize pageSize) { ContentCollector contentCollector = new ContentCollector(Dir.FullName); contentCollector.CollectContentToPdf(outputPath, font, fontSizeInfo, fontSizeHeader, pageSize); }
/// <summary> /// collect all pages to pdf format /// </summary> /// <param name="outputPath">output file path</param> public void CollectContentToPdf(string outputPath) { ContentCollector contentCollector = new ContentCollector(Dir.FullName); contentCollector.CollectContentToPdf(outputPath); }