4 ms·
only if there was an option to render pdf and save it to disk in headless mode. Still great step.
by tehlike 10y ago
only if there was an option to render pdf and save it to disk in headless mode.
Still great step.
- spatten 10y agoscroll down a bit and look for `--print-to-pdf`.
- tehlike 10y agoThanks, i was mostly thinking in the interactive mode (read: selenium). Currently this seems to be available in devtools protocol.
- joshribakoff 10y 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 10y agoMake sure you're using Chrome 59. If you don't have that yet, try Chrome Canary.
- deleted 10y ago[deleted]
- joshribakoff 10y 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 10y agoGet a build of Chromium that is more recent than this feature
- source99 10y agoAny ideas on how to print landscape with no margin ?
- ivank 10y 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
- deleted 10y ago[deleted]