Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 933 Bytes

README.md

File metadata and controls

38 lines (25 loc) · 933 Bytes

Chrome Print Page Python

Trivial scripts that helps me automate printing with chrome.

Usage

On first terminal start Google Chrome with ./start_chrome.sh.

On the second terminal invoke script

./print_me.py https://google.com
./print_me.py --printBackground True https://bing.com

Requirements

Python 3.6+ and modules from requirements.txt

Depedency installation within virtualenv

virtualenv -p /usr/bin/python3 venv
. venv/bin/activate
pip install -r requirements.txt 

Documentation

https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-printToPDF

./print_with_chrome.py -h

Other solutions