Search code examples
c#wkhtmltopdf

getting error on try to use wkhtmltopdf.exe and passing 2 params by url


my execute script : C:\\fortest\\wkhtmltopdf.exe http://localhost:5004/X/Y?a1=1&a2=23 google.pdf

I getting the error

'a2' is not recognized as an internal or external command, operable program or batch file.

by browser its look like that : enter image description here

I hid some of the data because it could be sensitive


Solution

  • Enclose url in quotes:

     C:\\fortest\\wkhtmltopdf.exe "http://localhost:5004/X/Y?a1=1&a2=23" ....