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.