# Chrome-PrintToPDF
Latest Chrome Browser supports getting PDFs for websites.
## Install
Requires Python 3.5+
pip install chrome-printtopdf
## Usage
On the command line:
python -m chrome_printtopdf /path/to/chrome-bin http://example.org/ out.pdf
As a library. Have a look at the source for `asyncio` API.
```python
from chrome_printtopdf import get_pdf_with_chrome_sync
pdf_file = get_pdf_with_chrome_sync('http://example.org',
chrome_binary='/path/to/chrome-bin')
with open('example.org.pdf', 'wb') as f:
f.write(pdf_file.read())
```
Latest Chrome Browser supports getting PDFs for websites.
## Install
Requires Python 3.5+
pip install chrome-printtopdf
## Usage
On the command line:
python -m chrome_printtopdf /path/to/chrome-bin http://example.org/ out.pdf
As a library. Have a look at the source for `asyncio` API.
```python
from chrome_printtopdf import get_pdf_with_chrome_sync
pdf_file = get_pdf_with_chrome_sync('http://example.org',
chrome_binary='/path/to/chrome-bin')
with open('example.org.pdf', 'wb') as f:
f.write(pdf_file.read())
```
Release files for chrome-printtopdf 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chrome_printtopdf-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / chrome_printtopdf-0.0.2-py3-none-any.whl
| Download URL | chrome_printtopdf-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03363b81137728ab203a37b48511c36278757152fa0019230383d8960572bde8
|
|
BLAKE2b-256 checksum How to use checksums |
02c3b0731be0c8b709d1eb4ef0eacf0af61603210023e74702f1e35225c26d7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |