pdfcrowd 2.2
A client for Pdfcrowd API.
Latest Version: 2.3
The Pdfcrowd API lets you easily create PDF from web pages or raw HTML code in your Python applications.
To use the API, you need an account on pdfcrowd.com, if you don't have one you can sign up here. This will give you a username and an API key.
An example:
import pdfcrowd
try:
# create an API client instance
client = pdfcrowd.Client("username", "apikey")
# convert a web page and store the generated PDF into a pdf variable
pdf = client.convertURI('http://example.com')
# convert an HTML string and save the result to a file
html="<html><body>In-memory HTML.</body></html>"
client.convertHtml(html, open('html.pdf', 'wb'))
# convert an HTML file
client.convertFile('/path/to/local/file.html', open('file.pdf', 'wb'))
except pdfcrowd.Error, why:
print 'Failed:', why
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| pdfcrowd-2.2.tar.gz (md5) | Source | 2011-08-04 | 5KB | 428 | |
- Author: Pdfcrowd Team
- Home Page: http://pdfcrowd.com/html-to-pdf-api/
- License: License :: OSI Approved :: MIT License
- Categories
- Package Index Owner: Pdfcrowd.Team
- DOAP record: pdfcrowd-2.2.xml
