Skip to main content

Get PDFs from URLs using chrome

Project description

# Chrome-PrintToPDF

Latest Chrome Browser supports getting PDFs for websites.

## Install

Requires Python 3.5+

pip install chrome-printtopdf


## Usage

```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())
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chrome-printtopdf-0.0.1.tar.gz (1.4 kB view details)

Uploaded Source

Built Distribution

chrome_printtopdf-0.0.1-py2.py3-none-any.whl (2.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file chrome-printtopdf-0.0.1.tar.gz.

File metadata

File hashes

Hashes for chrome-printtopdf-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a3c87afa7952d9d5749b8a30d26f167bac1702b9b228cedb98f7349af74a8d3c
MD5 c12c33693f7867d46d25f4b88a6ff887
BLAKE2b-256 6c0b8cb623e11d8fe3f48b6b41c18cadb0fe2a23d5526bda1f9814e44472c781

See more details on using hashes here.

File details

Details for the file chrome_printtopdf-0.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for chrome_printtopdf-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2423a586ce51f5f5b62b21846389f5c906150374450fc958b36bb0ac303da381
MD5 1e4ac7e99ef5aefe91e15bec689c8b41
BLAKE2b-256 acefe1cf001f19eaaa194bddecc8411dff6970fef342458840eb4d75e0098fed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page