I found a problem here -
https://github.com/wkhtmltopdf/wkhtmltopdf/issues/2782
(css javascript) - html. IIS. , CSS. , Javascript, OLE. Javascript ( var x = 1;), .
wkhtmltopdf js ...
-
https://github.com/wkhtmltopdf/wkhtmltopdf/issues/1634
I simply had to change:
<script src="//cdnjs.cloudflare.com/ajax/libs/numeral.js/1.4.5/numeral.min.js"></script>
to:
<script src="http://cdnjs.cloudflare.com/ajax/libs/numeral.js/1.4.5/numeral.min.js"></script>
(added the HTTP).
ActionAsPdf UrlAsPdf
URL- localhost
string pthx = "http://localhost/Home/exmple?num=" + numtofind;
UrlAsPdf urlss = new UrlAsPdf(pthx) {
FileName = "REPORT.pdf",
CustomSwitches = "--print-media-type "
};
, wkhtmltopdf ...
, ...