4 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.
python-wkhtmltopdf
A simple python wrapper for the wkhtmltopdf lib (http://code.google.com/p/wkhtmltopdf/) with flash support.
Requirements
System:
Xvfd
wkhtmltopdf
flashplugin-nonfree
python 2.5+
Installation
wkhtmltopdf
Install Xvfd:
$ sudo apt-get install xvfb
Install Fonts:
$ sudo apt-get install xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic
Install wkhtmltopdf:
$ sudo apt-get install wkhtmltopdf
Install flashplugin:
$ sudo apt-get install flashplugin-nonfree
python-wkhtmltopdf
From git:
$ git clone git@github.com:qoda/python-wkhtmltopdf.git $ cd python-wkhtmltopdf $ python setup.py install
Usage
Simple Usage::
Use from class:
from wkhtmltopdf import WKHtmlToPdf wkhtmltopdf = WKHtmlToPdf( url='http://www.example.com', output_file='~/example.pdf', ) wkhtmltopdf.render()Use from method:
from wkhtmltopdf import wkhtmltopdf wkhtmltopdf(url='example.com', output_file='~/example.pdf')
Use from commandline (installed):
$ python -m wkhtmltopdf.main example.com ~/example.pdf
Use the api (installed):
$ python -m wkhtmltopdf.api & $ wget http://localhost:8888/?url=example.com&output_file=example.pdf
Required Arguments:
url - the url to convert to pdf
output_file - the pdf file that you want to create
Optional Arguments:
screen_resolution (default: [1024, 768])
color_depth (default: 24 (bit))
flash_plugin (default: True)
disable_javascript (default: False)
delay (default: 0 (millisecs))
orientation (default: Portrait)
dpi (default: 100)
no_background (default: False)
grayscale (default: False)
http_username (default: None)
http_password (default: None)
header_html (default: None)
footer_html (default: None)
Metadata
Release files for wkhtmltopdf 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Files added late
4 files were uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| wkhtmltopdf-0.2.tar.gz | 9.7 kB | Without provenance | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wkhtmltopdf-0.2-py2.7.egg | Legacy Egg format | - | - | Details |
| wkhtmltopdf-0.2-py2.6.egg | Legacy Egg format | - | - | Details |
| wkhtmltopdf-0.2-py2.5.egg | Legacy Egg format | - | - | Details |
Total release size: 46.8 kB
Release files / wkhtmltopdf-0.2.tar.gz
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | wkhtmltopdf-0.2.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
530fffb5d1faf4f4cd5248c14fd1b4b7fe311541d0660dc2c2272c32b3c72211
|
|
BLAKE2b-256 checksum How to use checksums |
723360a1f2d8a784376ce4e56599ec26997dcee21fcc6340179fc7fac94d4aa4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / wkhtmltopdf-0.2-py2.7.egg
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | wkhtmltopdf-0.2-py2.7.egg |
|---|---|
| Size | 12.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
60c84c327f949a256c6c0752a0a5d8a63daa08d6158f650d6379be9aaa536a94
|
|
BLAKE2b-256 checksum How to use checksums |
0e7105cae0a8ef03455e1312d9430ed444cd9fd567e4c0c6a0c187e9bdf56708
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / wkhtmltopdf-0.2-py2.6.egg
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | wkhtmltopdf-0.2-py2.6.egg |
|---|---|
| Size | 12.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
f14972abdecf5ddb6e397e7b4910dad31516c0e146145753ce18144ba73be1a1
|
|
BLAKE2b-256 checksum How to use checksums |
4b81e63837bee4512fdd7e7e58ca7e6177821db329cbf535897e4606d0a1d45e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / wkhtmltopdf-0.2-py2.5.egg
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | wkhtmltopdf-0.2-py2.5.egg |
|---|---|
| Size | 12.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
eea6f42dccf58ded01980ae77e52017230db06b508e69fdb4f57c91054f543e0
|
|
BLAKE2b-256 checksum How to use checksums |
cc9d3f95267525b29fa188f2b04d3f6852640089ce4eed4c9074549b8bbdbc84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for wkhtmltopdf 0.2
Upload timing
Files added late
4 files were uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.