5 ms·
scroll down a bit and look for `--print-to-pdf`.
by spatten 9y ago
scroll down a bit and look for `--print-to-pdf`.
- tehlike 9y agoThanks, i was mostly thinking in the interactive mode (read: selenium). Currently this seems to be available in devtools protocol.
- joshribakoff 9y agoDoes not work for me. $ google-chrome --disable-gpu --headless --print-to-pdf https://www.chromestatus.com/ https://www.chromestatus.com/ && ls -la .pdf ls: cannot access '.pdf': No such file or directory
- ebidel 9y agoMake sure you're using Chrome 59. If you don't have that yet, try Chrome Canary.
- deleted 9y ago[deleted]
- joshribakoff 9y agoThe Google Chrome website installs v58 when I press download, and when I try to install Canary: "Chrome Canary is currently not available on the Linux platform."
- TheCoelacanth 9y agoGet a build of Chromium that is more recent than this feature
- source99 9y agoAny ideas on how to print landscape with no margin ?
- ivank 9y agoIf your system is already configured to use Google Chrome's apt repo (e.g. after installing a stable Chrome), you can do: apt-get install google-chrome-unstable