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


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)

Uploaded Source

Built Distribution

htmloverpdf-0.0.3-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2 Python 3

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

Hashes for htmloverpdf-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a28789c79cd0f85ed5b2a7d13b107e3b266d2b10247664c3e6facb6e57d611e9
MD5 17b930e49920784a0f8313daa8f074a0
BLAKE2b-256 f562822fa7658df0f4eb1014539e1d5ebd00ec7b39242549b0bfbf211798c53e

See more details on using hashes here.

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

Hashes for htmloverpdf-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 788a2ad45fad9e91ad8874e96ece1460b83ed0cc657954c2216e3e516c2f0b90
MD5 2b4191d6e8501747fc11c264f914b3a7
BLAKE2b-256 637e64ab5caef6c92c8327ec5be65ca64b64e490194f550633ed1a631e3f2a79

See more details on using hashes here.

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