Skip to content

WeasyPrint plugin for py4web, easely create PDF files via py4web

License

Notifications You must be signed in to change notification settings

misl6/py4web-weasyprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py4web-weasyprint

Easely generate PDF outputs via WeasyPrint on top of py4web.

Installation

Considering that this plugin works on top of weasyprint, it needs some external dependencies as weasyprint does.

Step 1)

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.

Step 2)

Building from source:

python setup.py install

Installing from pip:

pip install py4web-weasyprint (still not available)

Example

from py4web_weasy import WeasyTemplate

@action('mypdfpage')
@action.uses(WeasyTemplate("mypdfpage.html"))
def mypdfpage():
    return {}

About

WeasyPrint plugin for py4web, easely create PDF files via py4web

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published