Skip to main content

Render a HTML overlay over existing PDF files.

Project description

https://readthedocs.org/projects/htmloverpdf/badge/?version=latest https://badge.fury.io/py/htmloverpdf.svg

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 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


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.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

htmloverpdf-0.0.2-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file htmloverpdf-0.0.2.tar.gz.

File metadata

  • Download URL: htmloverpdf-0.0.2.tar.gz
  • Upload date:
  • Size: 7.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

Hashes for htmloverpdf-0.0.2.tar.gz
Algorithm Hash digest
SHA256 954ab19dd44802cb1cd2533b08a8398a2d54c2981a79942600484e54530d96e9
MD5 24a7f86a0497437001631322f633db10
BLAKE2b-256 66cd2b7d885990751bf8664e9113a1095954675738d0acd8571454ef9488c94d

See more details on using hashes here.

Provenance

File details

Details for the file htmloverpdf-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: htmloverpdf-0.0.2-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

Hashes for htmloverpdf-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2a575c2e6876ee68e6d523a370a5c9356a073d9388ec8ceefee9ec25720b75a6
MD5 9b41a7888563a3866d562937a960673f
BLAKE2b-256 98391e4063c57f5c4d614b4acd986f40be6d3b624a767fc3c5cbdf69debb7bfb

See more details on using hashes here.

Provenance

Supported by

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