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

Uploaded source

Built Distribution

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

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page