Render a HTML overlay over existing PDF files.
Project description
Render a HTML overlay over existing PDF files.
Install
sudo apt install python3-gi-cairo gir1.2-poppler-0.18 python3-cairocffi python3-lxml gir1.2-pango-1.0 pip install htmloverpdf
A wrapper for http://weasyprint.org/ which allows compositing with existing PDF files.
It parses the HTML looking for <img> tags with src urls ending “.pdf”. Each one begins a new page and copies all source pages overlaying the weasyprint output. The magic value “blank.pdf” outputs sections HTML without overlaying.
Usage
python -m htmloverpdf < test.html > test.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 htmloverpdf-0.0.1.tar.gz.
File metadata
- Download URL: htmloverpdf-0.0.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04d2cc2b0396e1425a5d3aa7c6b33c1dd785cba0d93f3d58c851c09e5b74ec7b
|
|
| MD5 |
4ab201d21457ec77d4f736b072184cbd
|
|
| BLAKE2b-256 |
4b2ada356d2a718b66e650f7bb0f9ceb2a4dd45f27735ce005089e66f8b395e2
|
File details
Details for the file htmloverpdf-0.0.1-py2.py3-none-any.whl.
File metadata
- Download URL: htmloverpdf-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43e93cb8d5c8849e131054c48a82ede1453f4f0ff4499e6776eec10b32224887
|
|
| MD5 |
99891f9dd0ce8072fae66ee78f1436cf
|
|
| BLAKE2b-256 |
a939fe83d7f2c2ec701b8e3bd097f52b6fb27a1e62f105deb63f1e9374249d77
|