I am trying to use Headless feature of the Chrome to convert a html to pdf. However, i am not getting output at all. Console doesn\'t show any error as well. I am running be
I was missing "=" after print-to-pdf command.
The correct command is:
chrome --headless --disable-gpu --print-to-pdf="C:/temp/name.pdf" https://www.google.com/
Now it is working.