additional options in Chrome headless print-to-pdf
I need help one more time. I am trying to print a page to pdf using headless feature of the chrome. However, header and footer is present in the pdf. I found that this option as been implemented in Devtools. https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-printToPDF However, i can't find how can i use these options in CLI. Also is it possible to invoke the Devtools from selenium? Additionally how can i invoke Page.PrintToPDF in Dev tools. I tried to run the command in Console. It is showing Page is undefined. nuccio Add this CSS to the page your creating into a PDF to