Wkhtmltopdf API Wrapper
Project description
Wkhtmltopdf API Wrapper
wkhtmltopdf-api Command Line Tool
In short, the script acts as a wrapper for Wkhtmltopdf. It replaces the local binary and transfers the job of generating pdf files to an external api.
Installation
Install from PyPI:
pip install wkhtmltopdf-api
Configuration
Environment vars
-
REPORT_API_URL: str, required
-
REPORT_API_TIMEOUT: seconds, default 300
-
REPORT_API_SIZE_LIMIT: bytes, default 100000000 (100mb)
-
WKHTMLTOPDF_VERSION: str, default 0.12.6
Usage
Same as wkhtmltopdf, see options : https://wkhtmltopdf.org/usage/wkhtmltopdf.txt
wkhtmltopdf-api --disable-local-file-access --cookie session_id abcd --quiet --page-size A4 --margin-top 40.0 --dpi 90 --zoom 1.0666666666666667 --header-spacing 35 --margin-left 7.0 --margin-bottom 28.0 --margin-right 7.0 --orientation Portrait --header-html /tmp/report.header.tmp.xxx.html --footer-html /tmp/report.footer.tmp.xxx.html /tmp/report.body.tmp.xxx.html /tmp/report.tmp.xxx.pdf
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wkhtmltopdf_api-0.1.0.tar.gz.
File metadata
- Download URL: wkhtmltopdf_api-0.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4e90b892292af0cc5e2c963cfe5306950d0328b91281dc8220f228fc6e879ef
|
|
| MD5 |
3d61f920a569c413dc93647001063b1d
|
|
| BLAKE2b-256 |
7c82d08c5e2163b14e5bfe4b719cc7694a701c67191b8ad3801fd6ccc716bfb4
|
File details
Details for the file wkhtmltopdf_api-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wkhtmltopdf_api-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1819b229ed227990f6ac8efdaf9860d8581900992b1cd6c02b016694b4739249
|
|
| MD5 |
4b7e297af2a33843855494f621472e8f
|
|
| BLAKE2b-256 |
c6d6ae947249d3704042cef50d392cebe0e322f6a1d18bace023c3ea405eb05e
|