chromium –headless –print-to-pdf „http://example.com“
saves output.pdf in the pwd
dir.firefox -screenshot „path/to/image.png“ –window-size=„1200,600“ „http://example.com“
save a png file. very buggyaptitude install npm
npm install npm -g
updates npmnpm install –global pageres-cli