Headless Chrome to print pdf

前端 未结 7 1445
渐次进展
渐次进展 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:46

    This worked for me in windows

    start chrome --headless --disable-gpu --print-to-pdf=C:\Users\username\pdfs\chrome.pdf --no-margins https://www.google.com

提交回复
热议问题