barnabyshearer/htmloverpdf

By barnabyshearer

Updated over 4 years ago

Render a HTML overlay over existing PDF files.

Image
Languages & frameworks
Integration & delivery
Web analytics
1

10K+

barnabyshearer/htmloverpdf repository overview

readthedocs.io pypi.org issues

Dockerfile

A wrapper for https://weasyprint.org/ which allows compositing with existing PDF files.

It parses the HTML looking for 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

alias htmloverpdf="docker run --rm --interactive barnabyshearer/htmloverpdf"
htmloverpdf < test.html > test.pdf

Tag summary

Content type

Image

Digest

Size

77.3 MB

Last updated

over 4 years ago

docker pull barnabyshearer/htmloverpdf:0-python-alpine