Easely generate PDF outputs via WeasyPrint on top of py4web.
Considering that this plugin works on top of weasyprint
, it needs some external dependencies as weasyprint does.
Follow these install instructions if you're on a Linux distro.
Follow these install instructions if you're on MacOS.
Follow these install instructions if you're on Windows.
python setup.py install
pip install py4web-weasyprint
(still not available)
from py4web_weasy import WeasyTemplate
@action('mypdfpage')
@action.uses(WeasyTemplate("mypdfpage.html"))
def mypdfpage():
return {}