tocSettings = new TableOfContentsSettings
{
IsTableOfContent = true,
UseDottedLines = true,
PagesCount = true,
WebSettings = { DefaultEncoding = "utf-8", UserStyleSheet = pdfGenerationParameters.TOCStyleSheetPath },
FooterSettings = { FontSize = 6, Right = "Page [page] of [toPage]", Line = true, Spacing = 3 },
HeaderSettings = { FontSize = 9 ,FontName ="sans-serif"}
};