How to Capture Screenshot of Webpage Using Google Chrome
Requirements:
You must be using Google Chrome 59 or later version. With the Google Chrome version 59, it’s only available for MAC OS and Linux users. Windows users still have to wait for some time.
Create PDF with Google Chrome:
Use the following google-chrome command with –print-to-pdf switch to create pdf of any web page. The output file will be created in the current directory with name output.pdf. You can also specify output filename with location as –print-to-pdf=file1.pdf to create specific name. Reference: https://developers.google.com/web/updates/2017/04/headless-chrome