Render a HTML overlay over existing PDF files.
Project description
Render a HTML overlay over existing PDF files.
Install
sudo apt install libgirepository1.0-dev gir1.2-poppler-0.18 gir1.2-pango-1.0 python3 -m pip install htmloverpdf
A wrapper for https://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
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
htmloverpdf-0.0.3.tar.gz
(9.1 kB
view details)
Built Distribution
File details
Details for the file htmloverpdf-0.0.3.tar.gz
.
File metadata
- Download URL: htmloverpdf-0.0.3.tar.gz
- Upload date:
- Size: 9.1 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 | a28789c79cd0f85ed5b2a7d13b107e3b266d2b10247664c3e6facb6e57d611e9 |
|
MD5 | 17b930e49920784a0f8313daa8f074a0 |
|
BLAKE2b-256 | f562822fa7658df0f4eb1014539e1d5ebd00ec7b39242549b0bfbf211798c53e |
File details
Details for the file htmloverpdf-0.0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: htmloverpdf-0.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 4.4 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 | 788a2ad45fad9e91ad8874e96ece1460b83ed0cc657954c2216e3e516c2f0b90 |
|
MD5 | 2b4191d6e8501747fc11c264f914b3a7 |
|
BLAKE2b-256 | 637e64ab5caef6c92c8327ec5be65ca64b64e490194f550633ed1a631e3f2a79 |