3 ms·
> In the meantime Chrome added headless support and with command line or puppeteer you can do the same thing with a much newer and more secure engine. Yep, thi
by endless1234 6y ago
> In the meantime Chrome added headless support and with command line or puppeteer you can do the same thing with a much newer and more secure engine.
Yep, this is the way to go now. Very simple API with puppeteer and everything looks the same as when viewing the page in a browser (save any @media print css).
- Guillaume86 6y agoFYI you can use the chrome dev tools to set the @media to print, great to fine tune your CSS for PDF rendering or just printing.