Skip to main content

A client for Pdfcrowd API.

Project description

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

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

pdfcrowd-2.6.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file pdfcrowd-2.6.tar.gz.

File metadata

  • Download URL: pdfcrowd-2.6.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pdfcrowd-2.6.tar.gz
Algorithm Hash digest
SHA256 ce3a63d0a74f8fc8425e7b474ebcc96bb7328e1c18da3f6e6895f1063428d628
MD5 18446cd6b6386a26b628bc147a55b971
BLAKE2b-256 d29fc6f1c0621852ebba9576b883e2da663d01492e0d6af1607aaa65b3088597

See more details on using hashes here.

Supported by

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