by avian · 9y ago · 0 comments
$ google-chrome --headless --disable-gpu --print-to-pdf 'http://example.com'
Edit: I'm completely baffled that such widely used software as Google Chrome can have this written in the man page: "Google Chrome has hundreds of undocumented command-line flags that are added and removed at the whim of the developers."
https://developers.google.com/web/updates/2017/04/headless-c...