Last active
December 27, 2018 16:12
-
-
Save assafmo/ee8e9698bb625e94fceabb4746273e75 to your computer and use it in GitHub Desktop.
Use headless chrome to print a page to pdf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
google-chrome --headless --disable-gpu --print-to-pdf="$PDF_NAME" "$URL" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment