How can I run javascript codes, css files and javascript files into wkhtmltopdf in asp.net core api project?

levent koman 1 Reputation point
2022-06-17T14:40:58.073+00:00

I use the Chart.js library to draw charts, but I use the wkhtmltopdf library to convert pdf. But my javascrip codes and css codes are not working. How can I make it work?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,184 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,265 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 56,686 Reputation points
    2022-06-21T19:41:48.813+00:00

    the links to css and js files must be either full url with server (and no security) or absolute file paths (relative path are not supported with string input html

    what do your links look like?

    0 comments No comments