new ObjectSettings() { WebSettings = new WebSettings() { UserStyleSheet = Path.Combine(Directory.GetCurrentDirectory(), @"ClientApp\public\stylesheet.css") } HtmlContent= str.ToString() }
Local debugging this works fine. When I publish and view the pdf, the stylesheet is not implemented. The directory seems correct when I logged the directory path.
Does it need to be an absolute path? I can't seem to get it to work otherwise.
The public directory is accessible, I can access this style sheet and images.
new ObjectSettings() { WebSettings = new WebSettings() { UserStyleSheet = Path.Combine(Directory.GetCurrentDirectory(), @"ClientApp\public\stylesheet.css") } HtmlContent= str.ToString() }
Local debugging this works fine. When I publish and view the pdf, the stylesheet is not implemented. The directory seems correct when I logged the directory path. Does it need to be an absolute path? I can't seem to get it to work otherwise.The public directory is accessible, I can access this style sheet and images.
Using 64 bit libwkhtmltox.dll