Headless Chrome to print pdf

前端 未结 7 1427
渐次进展
渐次进展 2020-12-30 15:33

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

7条回答
  •  天涯浪人
    2020-12-30 15:51

    This is working:

    chrome --headless --disable-gpu --print-to-pdf=file1.pdf https://www.google.co.in/
    

    creates file in the folder: C:\Program Files (x86)\Google\Chrome\Application\61.0.3163.100.

提交回复
热议问题