TOC page is blank for second time pdf generation in .net core 6

12 views
Skip to first unread message

Mashhood Sadique

unread,
Jun 7, 2023, 5:45:37 AM6/7/23
to wkhtmltopdf General
I am using wkhtml for generating reports. Report is generated correctly for the first time after each deployment, but next time onwards the TOC page is completely blank

this is my TOC settings

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"}
                };
Reply all
Reply to author
Forward
0 new messages